Skip to content

Commit 08dcd88

Browse files
committed
Fix MSVC library inclusion
1 parent a7e93d2 commit 08dcd88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ if (WIN32 OR UNIX AND NOT APPLE) # AND NOT ANDROID
294294
install(FILES ${DOCS} DESTINATION ${DOC_INSTALL_DIR})
295295
endif()
296296

297+
set(CMAKE_INSTALL_UCRT_LIBRARIES On)
298+
set(InstallRequiredSystemLibraries On)
297299
include(InstallRequiredSystemLibraries)
298300

299301
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
@@ -346,7 +348,6 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
346348
${CMAKE_SOURCE_DIR}/${README_FILE} "Readme"
347349
)
348350
set(CPACK_NSIS_MUI_FINISHPAGE_RUN "${CPACK_NSIS_INSTALLED_ICON_NAME}")
349-
set(InstallRequiredSystemLibraries On)
350351

351352
elseif(APPLE AND NOT IOS)
352353
set(CPACK_GENERATOR "DragNDrop")

0 commit comments

Comments
 (0)