Fix for UCrt runtime packaging, from Erik
This commit is contained in:
parent
b7a2e993b6
commit
0331180e4f
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue