Test to see if this works better with Conan.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-07-12 11:46:48 +02:00
parent 592e3c3ffe
commit 1ddbfb09b9
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 7 additions and 2 deletions

View File

@ -19,12 +19,17 @@ add_library(Arbutils ${LIBTYPE} ${SRC_FILES})
if (WINDOWS)
MESSAGE(WARNING, "Using Windows Build.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -Wa,-mbig-obj -pthread -wc-use-mingw-linker")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -Wa,-mbig-obj -pthread")
if (STATICC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -wc-static-runtime")
endif (STATICC)
set_target_properties(Arbutils PROPERTIES SUFFIX ".dll")
endif (WINDOWS)
if (STATICC)
target_link_libraries(Arbutils -static-libgcc -static-libstdc++)
if (NOT WINDOWS)
target_link_libraries(Arbutils -static-libgcc -static-libstdc++)
endif ()
endif (STATICC)
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")