Skip to content
Snippets Groups Projects
Commit f6b8f1c4 authored by Michael Gottesman's avatar Michael Gottesman
Browse files

[ClangConfig] Follow LLVM's example and only install...

[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
parent 4e19e514
No related branches found
No related tags found
No related merge requests found
...@@ -19,8 +19,10 @@ configure_file( ...@@ -19,8 +19,10 @@ configure_file(
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClangConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClangConfig.cmake
@ONLY) @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 install(FILES
${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClangConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/ClangConfig.cmake
DESTINATION ${CLANG_INSTALL_PACKAGE_DIR}) DESTINATION ${CLANG_INSTALL_PACKAGE_DIR})
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment