summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-15 12:07:01 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-15 12:07:01 +0200
commit6a61c0dd7dc3587db3d0a690ea44783734507873 (patch)
treedb5e36f2cb4698b4692e74c20ad1fc5072cfa554 /CMakeLists.txt
parente58fb06ebc274a684712a7cb80028f3d2ec7757b (diff)
Actually, static link doesn't pull in two CRTs
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files 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)