summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-12-12 00:47:07 +0000
committerShoaib Meenai <smeenai@fb.com>2017-12-12 00:47:07 +0000
commitac75523108a41c828b0594cfe4e5aed659af66c7 (patch)
tree5007604e1445c2cb1ee10f38eab02f09b9568d9f
parent17d71c014cdd93a71b9c6801c7da3344f893ba97 (diff)
downloadbcm5719-llvm-ac75523108a41c828b0594cfe4e5aed659af66c7.tar.gz
bcm5719-llvm-ac75523108a41c828b0594cfe4e5aed659af66c7.zip
[lldb] Switch to add_llvm_install_targets
This adds the install-*-stripped targets to LLDB, which are required for the install-distribution-stripped option. We also need to create some install-*-stripped targets manually, which are modeled after their corresponding install-* targets. Differential Revision: https://reviews.llvm.org/D41099 llvm-svn: 320443
-rw-r--r--lldb/cmake/modules/AddLLDB.cmake16
1 files changed, 6 insertions, 10 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
index 4cd4a56c052..ef0371130fb 100644
--- a/lldb/cmake/modules/AddLLDB.cmake
+++ b/lldb/cmake/modules/AddLLDB.cmake
@@ -66,11 +66,8 @@ function(add_lldb_library name)
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
endif()
if (NOT CMAKE_CONFIGURATION_TYPES)
- add_custom_target(install-${name}
- DEPENDS ${name}
- COMMAND "${CMAKE_COMMAND}"
- -DCMAKE_INSTALL_COMPONENT=${name}
- -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
+ add_llvm_install_targets(install-${name}
+ DEPENDS ${name})
endif()
endif()
endif()
@@ -121,6 +118,8 @@ function(add_lldb_executable name)
if(ARG_GENERATE_INSTALL)
add_custom_target(install-${name} DEPENDS ${name})
add_dependencies(install-liblldb ${name})
+ add_custom_target(install-${name}-stripped DEPENDS ${name})
+ add_dependencies(install-liblldb-stripped ${name})
endif()
else()
set_target_properties(${name} PROPERTIES
@@ -134,11 +133,8 @@ function(add_lldb_executable name)
COMPONENT ${name}
RUNTIME DESTINATION bin)
if (NOT CMAKE_CONFIGURATION_TYPES)
- add_custom_target(install-${name}
- DEPENDS ${name}
- COMMAND "${CMAKE_COMMAND}"
- -DCMAKE_INSTALL_COMPONENT=${name}
- -P "${CMAKE_BINARY_DIR}/cmake_install.cmake")
+ add_llvm_install_targets(install-${name}
+ DEPENDS ${name})
endif()
endif()
OpenPOWER on IntegriCloud