From c2b6b60cec8f1d2ca5f6442125faca13b6ff8ff8 Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Mon, 20 Jun 2016 14:29:08 +0100 Subject: [PATCH] #4978 Compile core on VS2015 --- CMakeLists.txt | 1 + src/lib/synwinhk/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d251345..f04d7f74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,6 +312,7 @@ else() # not-unix /D_WINDOWS /D_CRT_SECURE_NO_WARNINGS /DVERSION=\"${VERSION}\" + /D_XKEYCHECK_H ) if (MSVC_VERSION EQUAL 1600) diff --git a/src/lib/synwinhk/CMakeLists.txt b/src/lib/synwinhk/CMakeLists.txt index b311e3c7..df0095d2 100644 --- a/src/lib/synwinhk/CMakeLists.txt +++ b/src/lib/synwinhk/CMakeLists.txt @@ -26,6 +26,8 @@ include_directories( add_library(synwinhk SHARED ${sources}) +target_link_libraries (synwinhk libucrt) + # copy the dlls (and supporting files) from the lib dir to # the bin dir, so that synergyc and synergys can easily find them. # we should leave the other libraries compiling to the lib dir,