From 8652b3b5f5673f325f29f9204ed2e30dd9fe2c0b Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 23 Sep 2019 14:11:48 +0000 Subject: [PATCH] [llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library Modify LLVMConfig to produce LLVM_USE_CRT variables in build-directory. It helps to set the same compiler debug options like in builded library. Committed on behalf of @igorban (Igor) Differential Revision: https://reviews.llvm.org/D67175 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372610 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/LLVMConfig.cmake.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in index 6dcbaac4469..ca2a0b50897 100644 --- a/cmake/modules/LLVMConfig.cmake.in +++ b/cmake/modules/LLVMConfig.cmake.in @@ -10,6 +10,11 @@ set(LLVM_PACKAGE_VERSION @PACKAGE_VERSION@) set(LLVM_BUILD_TYPE @CMAKE_BUILD_TYPE@) +set(LLVM_USE_CRT_DEBUG @LLVM_USE_CRT_DEBUG@) +set(LLVM_USE_CRT_MINSIZEREL @LLVM_USE_CRT_MINSIZEREL@) +set(LLVM_USE_CRT_RELEASE @LLVM_USE_CRT_RELEASE@) +set(LLVM_USE_CRT_RELWITHDEBINFO @LLVM_USE_CRT_RELWITHDEBINFO@) + set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@) set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@) -- 2.11.4.GIT