diff options
| author | Chris Bieneman <beanz@apple.com> | 2016-09-01 16:43:39 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2016-09-01 16:43:39 +0000 |
| commit | be765196fa781b81cf61e09f7c0cfc0a829fc867 (patch) | |
| tree | 6913d10d8fa7f38d583dd8bce96b0f9c0694aa43 /llvm/cmake | |
| parent | fcb186ca9d4f6196190d22ffff8e3dbd488c30fc (diff) | |
| download | bcm5719-llvm-be765196fa781b81cf61e09f7c0cfc0a829fc867.tar.gz bcm5719-llvm-be765196fa781b81cf61e09f7c0cfc0a829fc867.zip | |
[CMake] Revive LLVM_*_DIRS variables
This is a partial revert of r280013. Brad King pointed out these variable names are matching CMake conventions, so we should preserve them.
I've also added a direct mapping of the LLVM_*_DIR variables which we need to make projects support building in and out of tree.
llvm-svn: 280380
Diffstat (limited to 'llvm/cmake')
| -rw-r--r-- | llvm/cmake/modules/LLVMConfig.cmake.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in index 1b554998f4b..5dc9a9ef582 100644 --- a/llvm/cmake/modules/LLVMConfig.cmake.in +++ b/llvm/cmake/modules/LLVMConfig.cmake.in @@ -52,8 +52,15 @@ set(LLVM_ON_WIN32 @LLVM_ON_WIN32@) set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@) +set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@") +set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@") + +# These variables are duplicated, but they must match the LLVM variables of the +# same name. The variables ending in "S" could some day become lists, and are +# preserved for convention and compatibility. set(LLVM_INCLUDE_DIR "@LLVM_CONFIG_INCLUDE_DIRS@") set(LLVM_LIBRARY_DIR "@LLVM_CONFIG_LIBRARY_DIRS@") + set(LLVM_DEFINITIONS "@LLVM_DEFINITIONS@") set(LLVM_CMAKE_DIR "@LLVM_CONFIG_CMAKE_DIR@") set(LLVM_BINARY_DIR "@LLVM_CONFIG_BINARY_DIR@") |

