Try linking everything statically in Windows build
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
8b30078411
commit
27fb623a43
|
@ -61,10 +61,10 @@ if (WINDOWS)
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L ${CMAKE_BINARY_DIR}/bin")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -Wa,-mbig-obj -Wl,-allow-multiple-definition")
|
||||
# Statically link libraries we need in Windows.
|
||||
target_link_libraries(CreatureLibLibrary -static-libgcc -static-libstdc++)
|
||||
target_link_libraries(CreatureLibBattling -static-libgcc -static-libstdc++)
|
||||
target_link_libraries(CreatureLibLibrary -static -static-libgcc -static-libstdc++)
|
||||
target_link_libraries(CreatureLibBattling -static -static-libgcc -static-libstdc++)
|
||||
if (NOT DEFINED CONAN_EXPORTED)
|
||||
target_link_libraries(CreatureLibTests -static-libgcc -static-libstdc++)
|
||||
target_link_libraries(CreatureLibTests -static -static-libgcc -static-libstdc++)
|
||||
endif ()
|
||||
endif (WINDOWS)
|
||||
|
||||
|
|
Loading…
Reference in New Issue