Skip to content

Commit f057c49

Browse files
committed
C++ mode is required to compile src not demo
1 parent b73ecd2 commit f057c49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ 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_static PROPERTIES LINKER_LANGUAGE CXX)
22+
endif(MSVC)
1823
# set the lib's version number
1924
# But avoid on Android because symlinks to version numbered .so's don't work with Android's Java-side loadLibrary.
2025
if(NOT ANDROID)

0 commit comments

Comments
 (0)