[Lldb-commits] [lldb] r320443 - [lldb] Switch to add_llvm_install_targets

Shoaib Meenai via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 11 16:47:08 PST 2017


Author: smeenai
Date: Mon Dec 11 16:47:07 2017
New Revision: 320443

URL: http://llvm.org/viewvc/llvm-project?rev=320443&view=rev
Log:
[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

Modified:
    lldb/trunk/cmake/modules/AddLLDB.cmake

Modified: lldb/trunk/cmake/modules/AddLLDB.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/AddLLDB.cmake?rev=320443&r1=320442&r2=320443&view=diff
==============================================================================
--- lldb/trunk/cmake/modules/AddLLDB.cmake (original)
+++ lldb/trunk/cmake/modules/AddLLDB.cmake Mon Dec 11 16:47:07 2017
@@ -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()
 




More information about the lldb-commits mailing list