For the llvm-tools we're generating install-${tool} targets which are very useful. We should have one for clang too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247912
91177308-0d34-0410-b5e6-
96231b3b80d8
PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${clang_cl})
install(TARGETS clang
- RUNTIME DESTINATION bin)
+ RUNTIME DESTINATION bin
+ COMPONENT clang)
+add_custom_target(install-clang
+ DEPENDS clang
+ COMMAND "${CMAKE_COMMAND}"
+ -DCMAKE_INSTALL_COMPONENT=clang
+ -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
# Create the clang++ and clang-cl symlinks at installation time.
install(SCRIPT clang_symlink.cmake -DCMAKE_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\")