diff --git a/CMakeLists.txt b/CMakeLists.txt index 88f2210..c50ce35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,16 +18,12 @@ 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") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -Wa,-mbig-obj -pthread -wc-use-mingw-linker") set_target_properties(Arbutils PROPERTIES SUFFIX ".dll") endif (WINDOWS) if (STATICC) - if (WINDOWS) - target_link_libraries(Arbutils -wc-static-runtime) - else () - target_link_libraries(Arbutils -static-libgcc -static-libstdc++) - endif (WINDOWS) + target_link_libraries(Arbutils -static-libgcc -static-libstdc++) endif (STATICC) file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")