From: Stefan Granitz Date: Wed, 5 Jun 2019 08:29:24 +0000 (+0000) Subject: [CMake] Export CMAKE_CONFIGURATION_TYPES for the LLVM build-tree X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=561003e724c852ae28d405b0600e2c2b7cbac1f7;p=llvm [CMake] Export CMAKE_CONFIGURATION_TYPES for the LLVM build-tree Summary: Useful info for standalone builds of subprojects. If a multi-configuration generator was used for the provided LLVM build-tree, standalone builds should consider actual subdirectories per configuration in `find_program()` (e.g. looking for `llvm-lit` or `llvm-tblgen`). Reviewers: labath, beanz, mgorny Subscribers: lldb-commits, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D62878 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362588 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in index df97c723efa..536031f790d 100644 --- a/cmake/modules/LLVMConfig.cmake.in +++ b/cmake/modules/LLVMConfig.cmake.in @@ -83,6 +83,7 @@ set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@") set(LLVM_TOOLS_BINARY_DIR "@LLVM_CONFIG_TOOLS_BINARY_DIR@") set(LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@") set(LLVM_HAVE_OPT_VIEWER_MODULES @LLVM_HAVE_OPT_VIEWER_MODULES@) +set(LLVM_CONFIGURATION_TYPES @CMAKE_CONFIGURATION_TYPES@) if(NOT TARGET LLVMSupport) set(LLVM_EXPORTED_TARGETS "@LLVM_CONFIG_EXPORTS@")