summaryrefslogtreecommitdiffstats
path: root/clang/cmake/modules
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2016-06-29 21:12:38 +0000
committerMichael Gottesman <mgottesman@apple.com>2016-06-29 21:12:38 +0000
commit03c38af1097a4da22f39cec4cb16d0fcbd935dd6 (patch)
tree286989358a35964e1c5a90287a365221b85f4ae4 /clang/cmake/modules
parent4556ebe62dd88d247ea04314f54ff46a25341525 (diff)
downloadbcm5719-llvm-03c38af1097a4da22f39cec4cb16d0fcbd935dd6.tar.gz
bcm5719-llvm-03c38af1097a4da22f39cec4cb16d0fcbd935dd6.zip
[ClangConfig] Copy ClangConfig.cmake to ${CMAKE_BINARY_DIR}/${CLANG_INSTALL_PACKAGE_DIR} instead of to ${CLANG_BINARY_DIR}/${CLANG_INSTALL_PACKAGE_DIR}.
This is an obvious bug since ClangConfig.cmake looks for ClangTargets.cmake in ${CMAKE_CURRENT_LIST_DIR}. But ClangTargets.cmake is in ${CMAKE_BINARY_DIR}/${CLANG_INSTALL_PACKAGE_DIR}, so it will always fail with an in tree build. In the case where clang is built out of tree, this is still correct since CMAKE_BINARY_DIR and CLANG_BINARY_DIR will be the same. llvm-svn: 274168
Diffstat (limited to 'clang/cmake/modules')
-rw-r--r--clang/cmake/modules/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/cmake/modules/CMakeLists.txt b/clang/cmake/modules/CMakeLists.txt
index 8eb84cd1ada..f0af3e9da71 100644
--- a/clang/cmake/modules/CMakeLists.txt
+++ b/clang/cmake/modules/CMakeLists.txt
@@ -18,5 +18,5 @@ install(FILES
# can build against a build directory of Clang more easily.
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/ClangConfig.cmake
- ${CLANG_BINARY_DIR}/${CLANG_INSTALL_PACKAGE_DIR}/ClangConfig.cmake
+ ${clang_cmake_builddir}/ClangConfig.cmake
COPYONLY)
OpenPOWER on IntegriCloud