summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2018-01-20 21:43:35 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2018-01-20 21:43:35 +0000
commit85e59a0ad996e7918f65a892cba9ad7b28cac09c (patch)
tree46400f058b50104ca2fb46b87e29a305d76b8ba0 /cmake
parente786d862a56315f16e0052947d5c34c71889d010 (diff)
downloadclang-85e59a0ad996e7918f65a892cba9ad7b28cac09c.tar.gz
[cmake] Use CLANG_BINARY_DIR to determine the build directory.
The patch puts the ClangConfig.cmake in the expected location when clang is embedded into a framework. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt
index be6d1d7257..c97ebd4d98 100644
--- a/cmake/modules/CMakeLists.txt
+++ b/cmake/modules/CMakeLists.txt
@@ -2,7 +2,7 @@
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
# the usual CMake convention seems to be ${Project}Targets.cmake.
set(CLANG_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/clang)
-set(clang_cmake_builddir "${CMAKE_BINARY_DIR}/${CLANG_INSTALL_PACKAGE_DIR}")
+set(clang_cmake_builddir "${CLANG_BINARY_DIR}/${CLANG_INSTALL_PACKAGE_DIR}")
# Keep this in sync with llvm/cmake/CMakeLists.txt!
set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)