diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -287,10 +287,12 @@ endforeach() foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS}) - set(${component}-${name} ${component}) - set(install-${component}-${name} install-${component}) - set(install-${component}-${name}-stripped install-${component}-stripped) - list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name} install-${component}-${name}-stripped) + if(NOT component IN_LIST SUB_COMPONENTS) + set(${component}-${name} ${component}) + set(install-${component}-${name} install-${component}) + set(install-${component}-${name}-stripped install-${component}-stripped) + list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name} install-${component}-${name}-stripped) + endif() endforeach() if(LLVM_INCLUDE_TESTS)