diff options
author | Michael Gottesman <mgottesman@apple.com> | 2016-06-29 21:59:15 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2016-06-29 21:59:15 +0000 |
commit | 1b87cd397495641be9b56ebe3a3e33e14ebea6c4 (patch) | |
tree | 9f3d04e069b416c0d7f58373cd941322408a1d20 /clang/cmake | |
parent | 905426e606cb95d702f206d2f26c30c2bff645ab (diff) | |
download | bcm5719-llvm-1b87cd397495641be9b56ebe3a3e33e14ebea6c4.tar.gz bcm5719-llvm-1b87cd397495641be9b56ebe3a3e33e14ebea6c4.zip |
[ClangConfig] Follow LLVM's example and only install Clang{Config,Target}.cmake when LLVM_INSTALL_TOOLCHAIN_ONLY is disabled.
llvm-svn: 274177
Diffstat (limited to 'clang/cmake')
-rw-r--r-- | clang/cmake/modules/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/cmake/modules/CMakeLists.txt b/clang/cmake/modules/CMakeLists.txt index 0bd630ffceb..86ab001d2c3 100644 --- a/clang/cmake/modules/CMakeLists.txt +++ b/clang/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() |