[llvm] 3fad47a - [CMake] Process components and install targets separately

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 4 18:45:58 PST 2023


Author: Petr Hosek
Date: 2023-02-05T02:43:54Z
New Revision: 3fad47a91741f2d472be99ae1fe253ab6b8d058f

URL: https://github.com/llvm/llvm-project/commit/3fad47a91741f2d472be99ae1fe253ab6b8d058f
DIFF: https://github.com/llvm/llvm-project/commit/3fad47a91741f2d472be99ae1fe253ab6b8d058f.diff

LOG: [CMake] Process components and install targets separately

This addresses issue introduced accidentally in D117263.

Added: 
    

Modified: 
    llvm/runtimes/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 9d5cc3189954..72c4d0a79de1 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -268,15 +268,15 @@ function(runtime_register_target name)
     endif()
   endforeach()
 
-  foreach(target IN LISTS SUB_COMPONENTS SUB_INSTALL_TARGETS)
-    set(${target}-${name} ${target})
-    list(APPEND ${name}_extra_targets ${target}-${name})
+  foreach(component IN LISTS SUB_COMPONENTS)
+    set(${component}-${name} ${component})
+    list(APPEND ${name}_extra_targets ${component}-${name})
   endforeach()
 
-  foreach(target_name IN LISTS SUB_INSTALL_TARGETS)
-    set(${target_name}-${name} ${target_name})
-    set(${target_name}-${name}-stripped ${target_name}-stripped)
-    list(APPEND ${name}_extra_targets ${target_name}-${name} ${target_name}-${name}-stripped)
+  foreach(target IN LISTS SUB_INSTALL_TARGETS)
+    set(${target}-${name} ${target})
+    set(${target}-${name}-stripped ${target}-stripped)
+    list(APPEND ${name}_extra_targets ${target}-${name} ${target}-${name}-stripped)
   endforeach()
 
   foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})


        


More information about the llvm-commits mailing list