Fix missing system libraries in MSVC installations

* Install UCRT libraries
* Install debug libraries in debug builds
This commit is contained in:
Hyunjin Song
2019-08-24 11:13:49 +09:00
committed by Shmuel H
parent ae9d619abd
commit 2f64c461e8

View File

@@ -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)