Skip to content

Commit b73ecd2

Browse files
committed
Fix for Visual Studio 2019 MSVC compiler
1 parent edf83e5 commit b73ecd2

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

demo/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ link_directories(${chipmunk_demos_library_dirs})
4343
add_executable(chipmunk_demos ${chipmunk_demos_source_files})
4444
target_link_libraries(chipmunk_demos ${chipmunk_demos_libraries})
4545

46-
# Tell MSVC to compile the code as C++.
47-
if(MSVC)
48-
set_source_files_properties(${chipmunk_demos_source_files} PROPERTIES LANGUAGE CXX)
49-
set_target_properties(chipmunk_demos PROPERTIES LINKER_LANGUAGE CXX)
50-
endif(MSVC)
51-
5246
if(INSTALL_DEMOS)
5347
install(TARGETS chipmunk_demos RUNTIME DESTINATION bin)
5448
endif(INSTALL_DEMOS)

src/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ if(BUILD_SHARED)
1515
add_library(chipmunk SHARED
1616
${chipmunk_source_files}
1717
)
18-
# Tell MSVC to compile the code as C++.
19-
if(MSVC)
20-
set_source_files_properties(${chipmunk_source_files} PROPERTIES LANGUAGE CXX)
21-
set_target_properties(chipmunk PROPERTIES LINKER_LANGUAGE CXX)
22-
endif(MSVC)
2318
# set the lib's version number
2419
# But avoid on Android because symlinks to version numbered .so's don't work with Android's Java-side loadLibrary.
2520
if(NOT ANDROID)

0 commit comments

Comments
 (0)