Skip to content

Commit 3fad47a

Browse files
committed
[CMake] Process components and install targets separately
This addresses issue introduced accidentally in D117263.
1 parent 8d433a0 commit 3fad47a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/runtimes/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ function(runtime_register_target name)
268268
endif()
269269
endforeach()
270270

271-
foreach(target IN LISTS SUB_COMPONENTS SUB_INSTALL_TARGETS)
272-
set(${target}-${name} ${target})
273-
list(APPEND ${name}_extra_targets ${target}-${name})
271+
foreach(component IN LISTS SUB_COMPONENTS)
272+
set(${component}-${name} ${component})
273+
list(APPEND ${name}_extra_targets ${component}-${name})
274274
endforeach()
275275

276-
foreach(target_name IN LISTS SUB_INSTALL_TARGETS)
277-
set(${target_name}-${name} ${target_name})
278-
set(${target_name}-${name}-stripped ${target_name}-stripped)
279-
list(APPEND ${name}_extra_targets ${target_name}-${name} ${target_name}-${name}-stripped)
276+
foreach(target IN LISTS SUB_INSTALL_TARGETS)
277+
set(${target}-${name} ${target})
278+
set(${target}-${name}-stripped ${target}-stripped)
279+
list(APPEND ${name}_extra_targets ${target}-${name} ${target}-${name}-stripped)
280280
endforeach()
281281

282282
foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})

0 commit comments

Comments
 (0)