[PATCH] D40688: [lld] Switch to add_llvm_install_targets
Shoaib Meenai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 20:18:16 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD319517: [lld] Switch to add_llvm_install_targets (authored by smeenai).
Changed prior to commit:
https://reviews.llvm.org/D40688?vs=125044&id=125073#toc
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D40688
Files:
cmake/modules/AddLLD.cmake
Index: cmake/modules/AddLLD.cmake
===================================================================
--- cmake/modules/AddLLD.cmake
+++ cmake/modules/AddLLD.cmake
@@ -25,11 +25,9 @@
RUNTIME DESTINATION bin)
if (${ARG_SHARED} AND NOT CMAKE_CONFIGURATION_TYPES)
- add_custom_target(install-${name}
+ add_llvm_install_targets(install-${name}
DEPENDS ${name}
- COMMAND "${CMAKE_COMMAND}"
- -DCMAKE_INSTALL_COMPONENT=${name}
- -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
+ COMPONENT ${name})
endif()
set_property(GLOBAL APPEND PROPERTY LLD_EXPORTS ${name})
endif()
@@ -60,11 +58,9 @@
COMPONENT ${name})
if(NOT CMAKE_CONFIGURATION_TYPES)
- add_custom_target(install-${name}
+ add_llvm_install_targets(install-${name}
DEPENDS ${name}
- COMMAND "${CMAKE_COMMAND}"
- -DCMAKE_INSTALL_COMPONENT=${name}
- -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
+ COMPONENT ${name})
endif()
set_property(GLOBAL APPEND PROPERTY LLD_EXPORTS ${name})
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40688.125073.patch
Type: text/x-patch
Size: 1089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171201/d838a463/attachment.bin>
More information about the llvm-commits
mailing list