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,