diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e00fc85..2d2b96a6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,8 @@ endfunction() # Find vcvarsall.bat and look for dynamic runtime DLLs. if(MSVC) + option(LOVE_INSTALL_UCRT "Provide the Windows 10 Universal CRT DLLs with LOVE" OFF) + if(NOT(MSVC_TOOLSET_VERSION STREQUAL "")) set(VSVERSION "${MSVC_TOOLSET_VERSION}") elseif((MSVC_VERSION GREATER 1909) AND (MSVC_VERSION LESS 1920)) @@ -149,8 +151,11 @@ if(MSVC) endif() endif() - # We currently ship on platforms which might not have the Universal C Runtime installed. - set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE) + if(LOVE_INSTALL_UCRT) + # We currently ship on platforms which might not have the Universal C Runtime installed. + set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE) + endif() + set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE) # TODO: The code for InstallRequiredSystemLibraries needs the UCRTVersion and WindowsSDKVersion