From e42e7fd9d67b09c0ab2e293487e34f1cac58a9ef Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Thu, 9 Aug 2018 08:41:03 +0000 Subject: [PATCH] cmake: don't pack system libs unless CMAKE_INSTALL_UCRT_LIBRARIES is set (PR38476) llvm-svn: 339319 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b058d5f839d..b60e93b7899 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1041,6 +1041,6 @@ if(LLVM_DISTRIBUTION_COMPONENTS) endif() # This allows us to deploy the Universal CRT DLLs by passing -DCMAKE_INSTALL_UCRT_LIBRARIES=ON to CMake -if (MSVC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") +if (MSVC AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_INSTALL_UCRT_LIBRARIES) include(InstallRequiredSystemLibraries) endif()