From 949fa1b35acdd9d9ebfca66fb3e893dbd98376e6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 24 Oct 2013 22:06:46 +0200 Subject: fix CRT hell Signed-off-by: Stanislaw Halik --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 885e9a96..4b524310 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -598,6 +598,10 @@ endif() target_link_libraries(opentrack opentrack-qxt-mini) endif() + if(MSVC) + SET_TARGET_PROPERTIES(opentrack PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT") + endif() + if(UNIX) install(TARGETS opentrack-qxt-mini DESTINATION .) endif() -- cgit v1.2.3