diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-11-30 22:35:02 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-11-30 22:35:02 +0000 |
commit | b44ae5f9b10d26651777750c3b01368399a1504d (patch) | |
tree | 8848e291856e110f0035f2734885b94467388b60 /tools/libclang | |
parent | e0a9480f64277460bf76a6683debe15cd4ab1aac (diff) |
[clang] Use add_llvm_install_targets
Use this function to create the install targets rather than doing so
manually, which gains us the `-stripped` install targets to perform
stripped installations.
Differential Revision: https://reviews.llvm.org/D40675
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang')
-rw-r--r-- | tools/libclang/CMakeLists.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/libclang/CMakeLists.txt b/tools/libclang/CMakeLists.txt index 3a51c6a5f2..4440637820 100644 --- a/tools/libclang/CMakeLists.txt +++ b/tools/libclang/CMakeLists.txt @@ -148,9 +148,6 @@ add_custom_target(libclang-headers) set_target_properties(libclang-headers PROPERTIES FOLDER "Misc") if (NOT CMAKE_CONFIGURATION_TYPES) # don't add this for IDE's. - add_custom_target(install-libclang-headers - DEPENDS - COMMAND "${CMAKE_COMMAND}" - -DCMAKE_INSTALL_COMPONENT=libclang-headers - -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") + add_llvm_install_targets(install-libclang-headers + COMPONENT libclang-headers) endif() |