diff --git a/CMakeLists.txt b/CMakeLists.txt index 83c4557..4a716bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,12 +39,12 @@ target_link_libraries(CreatureLibTests CreatureLibLibrary) target_link_libraries(CreatureLibTests CreatureLibBattling) if (WINDOWS) - set(CMAKE_CXX_FLAGS "-m64 -Wa,-mbig-obj") + set(CMAKE_CXX_FLAGS "-m64 -Wa,-mbig-obj -Wl,-allow-multiple-definition") # Statically link libraries we need in Windows. -# target_link_libraries(CreatureLibCore -static -static-libgcc -static-libstdc++) -# target_link_libraries(CreatureLibLibrary -static -static-libgcc -static-libstdc++) -# target_link_libraries(CreatureLibBattling -static -static-libgcc -static-libstdc++) -# target_link_libraries(CreatureLibTests -static -static-libgcc -static-libstdc++) + target_link_libraries(CreatureLibCore -static -static-libgcc -static-libstdc++) + target_link_libraries(CreatureLibLibrary -static -static-libgcc -static-libstdc++) + target_link_libraries(CreatureLibBattling -static -static-libgcc -static-libstdc++) + target_link_libraries(CreatureLibTests -static -static-libgcc -static-libstdc++) endif(WINDOWS) # Add a definition for the test library