summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules/LLVMConfig.cmake.in
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-06-22 21:01:19 +0000
committerChris Bieneman <beanz@apple.com>2016-06-22 21:01:19 +0000
commit40a650616d2fadb9e34985b37f56845b8bdcc99e (patch)
tree12a2b6acb17dde4d88ba997a596e0351574b1564 /llvm/cmake/modules/LLVMConfig.cmake.in
parent4bf88afa52b4f094c0d7ceb1edf8dd6ebaf17023 (diff)
downloadbcm5719-llvm-40a650616d2fadb9e34985b37f56845b8bdcc99e.tar.gz
bcm5719-llvm-40a650616d2fadb9e34985b37f56845b8bdcc99e.zip
[CMake] LLVM_BINARY_DIR was not being properly set in LLVMConfig.cmake
LLVMConfig.cmake needs to set LLVM_BINARY_DIR differently based on whether or not it is the build directory or the install directory. The build directory just needs to set the value from the configuration, the install directory needs to set it to the install prefix. llvm-svn: 273479
Diffstat (limited to 'llvm/cmake/modules/LLVMConfig.cmake.in')
-rw-r--r--llvm/cmake/modules/LLVMConfig.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
index 2bd08127ff1..3181c4ea5b9 100644
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
@@ -53,7 +53,7 @@ set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_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_INSTALL_PREFIX}")
+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@")
OpenPOWER on IntegriCloud