From: Petr Hosek Date: Sat, 16 Feb 2019 03:57:35 +0000 (+0000) Subject: [CMake] Use variables rather than ":" delimiters X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33b741c2ea94b4a372d53cb93a84fa5d6712c623;p=llvm [CMake] Use variables rather than ":" delimiters This is a follow up to D37644, this block was missed in that change. Differential Revision: https://reviews.llvm.org/D58093 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354194 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index 113afb0cf0d..f0ffa431aa0 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -389,11 +389,9 @@ else() # if this is included from LLVM's CMake endforeach() foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS}) - if(NOT "${target_name}:${target_name}-${component}" IN_LIST extra_targets) - list(APPEND ${name}_extra_targets - "${target_name}:${target_name}-${component}" - "${target_name}:${target_name}-install-${component}") - endif() + set(${component}-${name} ${component}) + set(install-${component}-${name} ${component}) + list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name}) endforeach() if(LLVM_INCLUDE_TESTS)