From 2f64c461e8dcf4d5ac185a763a500cbdd0aec4bf Mon Sep 17 00:00:00 2001 From: Hyunjin Song Date: Sat, 24 Aug 2019 11:13:49 +0900 Subject: [PATCH] Fix missing system libraries in MSVC installations * Install UCRT libraries * Install debug libraries in debug builds --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36e35bf4c..a08a9c8f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -709,4 +709,9 @@ MESSAGE( "\n\n") SET(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION "${BIN_DIR}") +if(MSVC) + # We can't set this on the install time according to the configuration + SET(CMAKE_INSTALL_DEBUG_LIBRARIES TRUE) + SET(CMAKE_INSTALL_UCRT_LIBRARIES TRUE) +endif() INCLUDE(InstallRequiredSystemLibraries)