From 0331180e4f04bd3b232b716f72b30ec6edd8faf7 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 2 Oct 2017 12:30:56 +0100 Subject: [PATCH] Fix for UCrt runtime packaging, from Erik --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 69955e325..73fca4ec6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,12 @@ IF(APPLE) list(APPEND PLATFORM_LIBS ${COCOA_LIBRARY} ${CORESERVICES_LIBRARY}) elseif(WIN32) list(APPEND PLATFORM_LIBS "Shlwapi.lib") + + set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION "bin") + set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE) + include(InstallRequiredSystemLibraries) + MESSAGE("Installing: ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}") + elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") find_package(Threads REQUIRED)