[libclang] Add dummy libclang-headers target
authorShoaib Meenai <smeenai@fb.com>
Thu, 2 Nov 2017 05:04:00 +0000 (05:04 +0000)
committerShoaib Meenai <smeenai@fb.com>
Thu, 2 Nov 2017 05:04:00 +0000 (05:04 +0000)
`LLVM_DISTRIBUTION_COMPONENTS` assumes that each component has both
`component` and `install-component` targets. Add a dummy no-op target
for `libclang-headers` to placate this check.

Differential Revision: https://reviews.llvm.org/D39524

llvm-svn: 317188

clang/tools/libclang/CMakeLists.txt

index a28499c..da2beca 100644 (file)
@@ -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