From 6a61c0dd7dc3587db3d0a690ea44783734507873 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 15 Oct 2013 12:07:01 +0200 Subject: Actually, static link doesn't pull in two CRTs --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09f55da6..52fac07c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -504,9 +504,10 @@ endif() target_link_libraries(opentrack-tracker-hydra ${MY_QT_LIBS}) if(WIN32) if(CMAKE_COMPILER_IS_GNUCXX) - target_link_libraries(opentrack-tracker-hydra "${SDK_HYDRA}/lib/win32/release_dll/sixense.lib" "${SDK_HYDRA}/lib/win32/release_dll/sixense_utils.lib") - install(FILES "${SDK_HYDRA}/bin/win32/release_dll/sixense.dll" "${SDK_HYDRA}/bin/win32/release_dll/sixense_utils.dll" - DESTINATION .) + target_link_libraries(opentrack-tracker-hydra + "${SDK_HYDRA}/lib/win32/release_static/sixense_s.slib" + "${SDK_HYDRA}/lib/win32/release_static/sixense_utils_s.lib") + set_target_properties (opentrack-tracker-hydra PROPERTIES LINK_FLAGS "/NODEFAULTLIB:libcmt.lib") endif() else() if(SDK_HYDRA_AMD64) -- cgit v1.2.3