[lld] r319517 - [lld] Switch to add_llvm_install_targets
Shoaib Meenai via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 20:17:45 PST 2017
Author: smeenai
Date: Thu Nov 30 20:17:45 2017
New Revision: 319517
URL: http://llvm.org/viewvc/llvm-project?rev=319517&view=rev
Log:
[lld] Switch to add_llvm_install_targets
This adds install-*-stripped targets that strip during installation.
Differential Revision: https://reviews.llvm.org/D40688
Modified:
lld/trunk/cmake/modules/AddLLD.cmake
Modified: lld/trunk/cmake/modules/AddLLD.cmake
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/cmake/modules/AddLLD.cmake?rev=319517&r1=319516&r2=319517&view=diff
==============================================================================
--- lld/trunk/cmake/modules/AddLLD.cmake (original)
+++ lld/trunk/cmake/modules/AddLLD.cmake Thu Nov 30 20:17:45 2017
@@ -25,11 +25,9 @@ macro(add_lld_library name)
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 @@ macro(add_lld_tool name)
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()
More information about the llvm-commits
mailing list