summaryrefslogtreecommitdiffstats
path: root/clang/cmake/modules/ClangConfig.cmake.in
Commit message (Collapse)AuthorAgeFilesLines
* [CMake] NFC. Add clang-tablegen-targets utility targetChris Bieneman2017-07-281-0/+7
| | | | | | | | By creating this target other projects that depend on clang-generated headers (like LLDB) will no longer be order-dependent on Clang being processed by CMake first. Also, by creating a dummy of this target in ClangConfig.cmake, projects that can build against out-of-tree clang can freely depend on the target without needing to have conditionals for if clang is in-tree or out-of-tree. llvm-svn: 309390
* [CMake] Add CLANG_INCLUDE_DIRS to CMake exportsChris Bieneman2017-02-061-0/+1
| | | | | | This patch adds setting CLANG_INCLUDE_DIRS in the generated CMake package configuration files. llvm-svn: 294207
* [cmake] Hint find_package() to prefer LLVM installed alongside clangMichal Gorny2017-01-311-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Include a path hint for find_package() in ClangConfig.cmake to ensure that CMake prefers LLVM installed alongside clang over the default search path. If two versions of LLVM are installed in the system, and one of them is in PATH, CMake's find_package() magic prefers the CMake directory alongside that install by default. Adding a relative hint makes it possible to prioritize to the install from which find_package() is called. If you want to build e.g. LLDB against another install of LLVM, you can pass LLVM_CONFIG override. In this case, LLDB queries the prefix from llvm-config and uses the CMake files located there. However, when including ClangConfig, the implicit find_package() nevertheless prefers PATH-found LLVM over the one used previously by LLDB, and two versions of LLVMConfig end up being loaded. This could be fixed on LLDB end up by explicitly forcing custom package search location. However, it seems simpler and safer to add a hint to ClangConfig than to track every usage of ClangConfig. Differential Revision: https://reviews.llvm.org/D29304 llvm-svn: 293632
* [cmake] Remove stale comment. NFC.Michael Gottesman2016-06-301-4/+0
| | | | llvm-svn: 274212
* [ClangConfig] Store all of the targets exported in the variable ↵Michael Gottesman2016-06-291-0/+1
| | | | | | CLANG_EXPORTED_TARGETS. llvm-svn: 274180
* [ClangConfig] Instead of hard coding the ClangTargets location to ↵Michael Gottesman2016-06-291-1/+5
| | | | | | | | /ClangTargets.cmake, follow LLVM's example and use a pre-computed cmake variable @CLANG_CONFIG_EXPORTS_FILE@. This just makes ClangConfig more consistent with LLVMConfig. llvm-svn: 274178
* [cmake] Instead of just copying ClangConfig.cmake, configure it using ↵Michael Gottesman2016-06-291-0/+10
ClangConfig.cmake.in. This will allow for cmake to expand variables in ClangConfig.cmake for downstream users. llvm-svn: 274176
OpenPOWER on IntegriCloud