From 13e8047967384a27c95e03913da29975dad3f19b Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Mon, 20 Jun 2016 16:07:04 +0100 Subject: [PATCH] #4978 Conditional linking C runtime lib --- src/lib/synwinhk/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/synwinhk/CMakeLists.txt b/src/lib/synwinhk/CMakeLists.txt index df0095d2..05d8d5aa 100644 --- a/src/lib/synwinhk/CMakeLists.txt +++ b/src/lib/synwinhk/CMakeLists.txt @@ -26,7 +26,9 @@ include_directories( add_library(synwinhk SHARED ${sources}) -target_link_libraries (synwinhk libucrt) +if (NOT MSVC_VERSION VERSION_LESS 1900) + target_link_libraries(synwinhk libucrt) +endif() # copy the dlls (and supporting files) from the lib dir to # the bin dir, so that synergyc and synergys can easily find them.