summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2016-06-29 21:59:15 +0000
committerMichael Gottesman <mgottesman@apple.com>2016-06-29 21:59:15 +0000
commitf6b8f1c48fe7bcf2116ed56a9ec74e0fa40b2621 (patch)
tree973cf0e77e59aa22d248ad9fe5298feca4f07bac /cmake
parent4e19e514672a6a94019fde624a35d9653dd957d2 (diff)
[ClangConfig] Follow LLVM's example and only install Clang{Config,Target}.cmake when LLVM_INSTALL_TOOLCHAIN_ONLY is disabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt
index 0bd630ffce..86ab001d2c 100644
--- a/cmake/modules/CMakeLists.txt
+++ b/cmake/modules/CMakeLists.txt
@@ -19,8 +19,10 @@ configure_file(
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClangConfig.cmake
@ONLY)
-install(EXPORT ClangTargets DESTINATION ${CLANG_INSTALL_PACKAGE_DIR})
+if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
+ install(EXPORT ClangTargets DESTINATION ${CLANG_INSTALL_PACKAGE_DIR})
-install(FILES
- ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClangConfig.cmake
- DESTINATION ${CLANG_INSTALL_PACKAGE_DIR})
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClangConfig.cmake
+ DESTINATION ${CLANG_INSTALL_PACKAGE_DIR})
+endif()