From a8dd82bf5e3c3fa32f60e2de85d3acc5f1536f8d Mon Sep 17 00:00:00 2001 From: Vadim Chugunov Date: Sat, 28 Jan 2017 07:39:52 +0000 Subject: This addresses LLDB bug 31699, which was caused by LLVM using static linking on Windows. In order to make sure that LLVM continues to work on machines that do not have the Universal CRT yet, we'll need to ship a copy of UCRT in the Windows installation package. Fortunately, CMake 3.6+ already supports app-local deployment of UCRT dlls, we just need to turn this on. Differential Revision: https://reviews.llvm.org/D29146 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293373 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cb24ea7d78..c2c9fe0a68b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -978,3 +978,8 @@ if(LLVM_DISTRIBUTION_COMPONENTS) endif() endforeach() endif() + +# This allows us to deploy the Universal CRT DLLs by passing -DCMAKE_INSTALL_UCRT_LIBRARIES=ON to CMake +if (MSVC) + include(InstallRequiredSystemLibraries) +endif() -- cgit v1.2.3