[llvm] r372610 - [llvm] [cmake] Add possibility to use ChooseMSVCCRT.cmake when include LLVM library
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 07:11:48 PDT 2019
Author: rksimon
Date: Mon Sep 23 07:11:48 2019
New Revision: 372610
URL: http://llvm.org/viewvc/llvm-project?rev=372610&view=rev
Log:
[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
Modified:
llvm/trunk/cmake/modules/LLVMConfig.cmake.in
Modified: llvm/trunk/cmake/modules/LLVMConfig.cmake.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/LLVMConfig.cmake.in?rev=372610&r1=372609&r2=372610&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/LLVMConfig.cmake.in (original)
+++ llvm/trunk/cmake/modules/LLVMConfig.cmake.in Mon Sep 23 07:11:48 2019
@@ -10,6 +10,11 @@ set(LLVM_PACKAGE_VERSION @PACKAGE_VERSIO
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@)
More information about the llvm-commits
mailing list