diff options
-rw-r--r-- | clang/tools/libclang/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt index a28499c2c46..da2beca2ac1 100644 --- a/clang/tools/libclang/CMakeLists.txt +++ b/clang/tools/libclang/CMakeLists.txt @@ -141,6 +141,11 @@ install(DIRECTORY ../../include/clang-c PATTERN ".svn" EXCLUDE ) +# LLVM_DISTRIBUTION_COMPONENTS requires that each component have both a +# component and an install-component target, so add a dummy libclang-headers +# target to allow using it in LLVM_DISTRIBUTION_COMPONENTS. +add_custom_target(libclang-headers) + if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDE's. add_custom_target(install-libclang-headers DEPENDS |