diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -275,11 +275,17 @@ 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 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -269,9 +269,6 @@ 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)