We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b73ecd2 commit f057c49Copy full SHA for f057c49
src/CMakeLists.txt
@@ -15,6 +15,11 @@ if(BUILD_SHARED)
15
add_library(chipmunk SHARED
16
${chipmunk_source_files}
17
)
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_static PROPERTIES LINKER_LANGUAGE CXX)
22
+ endif(MSVC)
23
# set the lib's version number
24
# But avoid on Android because symlinks to version numbered .so's don't work with Android's Java-side loadLibrary.
25
if(NOT ANDROID)
0 commit comments