r253636 - [CMake] Add a specific 'install-clang-headers' target.

Argyrios Kyrtzidis via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 19 18:24:03 PST 2015


Author: akirtzidis
Date: Thu Nov 19 20:24:03 2015
New Revision: 253636

URL: http://llvm.org/viewvc/llvm-project?rev=253636&view=rev
Log:
[CMake] Add a specific 'install-clang-headers' target.

Modified:
    cfe/trunk/lib/Headers/CMakeLists.txt

Modified: cfe/trunk/lib/Headers/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/CMakeLists.txt?rev=253636&r1=253635&r2=253636&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/CMakeLists.txt (original)
+++ cfe/trunk/lib/Headers/CMakeLists.txt Thu Nov 19 20:24:03 2015
@@ -102,5 +102,14 @@ set_target_properties(clang-headers PROP
 
 install(
   FILES ${files} ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
+  COMPONENT clang-headers
   PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
   DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
+
+if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDE's.
+  add_custom_target(install-clang-headers
+    DEPENDS
+    COMMAND "${CMAKE_COMMAND}"
+            -DCMAKE_INSTALL_COMPONENT=clang-headers
+            -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
+endif()




More information about the cfe-commits mailing list