diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-15 12:07:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-15 12:07:01 +0200 |
commit | 6a61c0dd7dc3587db3d0a690ea44783734507873 (patch) | |
tree | db5e36f2cb4698b4692e74c20ad1fc5072cfa554 /CMakeLists.txt | |
parent | e58fb06ebc274a684712a7cb80028f3d2ec7757b (diff) |
Actually, static link doesn't pull in two CRTs
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
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) |