summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-24 22:19:54 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-24 22:19:54 +0200
commit7860d01c4e823307fadb33e8a8904b73b5b738b4 (patch)
tree82a3d30928cf2928c3c2b161d28b4dc24114d4eb
parentce35044b97c187a800202b36d4653091b334121e (diff)
fix the link error again, now
-rw-r--r--CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5238c1e1..74765995 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -598,10 +598,6 @@ endif()
target_link_libraries(opentrack opentrack-qxt-mini)
endif()
- if(MSVC)
- SET_TARGET_PROPERTIES(opentrack PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT.lib")
- endif()
-
if(UNIX)
install(TARGETS opentrack-qxt-mini DESTINATION .)
endif()
@@ -615,7 +611,7 @@ endif()
)
endif()
if(MSVC)
- SET_TARGET_PROPERTIES(opentrack PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup")
+ SET_TARGET_PROPERTIES(opentrack PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /NODEFAULTLIB:LIBCMT.LIB")
endif()
target_link_libraries(opentrack opentrack-pose-widget opentrack-spline-widget ${MY_QT_LIBS} ${QXT_QXTCORE_LIB_RELEASE} ${QXT_QXTWIDGETS_LIB_RELEASE})
if(NOT WIN32)