From: Michael Gottesman Date: Wed, 29 Jun 2016 21:59:15 +0000 (+0000) Subject: [ClangConfig] Follow LLVM's example and only install Clang{Config,Target}.cmake when... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6b8f1c48fe7bcf2116ed56a9ec74e0fa40b2621;p=clang [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 --- 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()