diff options
-rw-r--r-- | llvm/runtimes/CMakeLists.txt | 8 | ||||
-rw-r--r-- | runtimes/CMakeLists.txt | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index fd92fd6..a62d9fa 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -275,11 +275,17 @@ function(runtime_register_target name target) endif() endforeach() - foreach(target_name IN LISTS SUB_COMPONENTS SUB_INSTALL_TARGETS) + foreach(target_name IN LISTS SUB_COMPONENTS) set(${target_name}-${name} ${target_name}) list(APPEND ${name}_extra_targets ${target_name}-${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) + endforeach() + foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS}) set(${component}-${name} ${component}) set(install-${component}-${name} install-${component}) diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index 688d912..df279bb 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -269,9 +269,6 @@ if(SUB_COMPONENTS) if(TARGET install-${component}) list(APPEND SUB_INSTALL_TARGETS install-${component}) endif() - if(TARGET install-${component}-stripped) - list(APPEND SUB_INSTALL_TARGETS install-${component}-stripped) - endif() endforeach() if(LLVM_RUNTIMES_TARGET) |