[PATCH] D58093: [CMake][runtimes] Use variables rather than ":" delimiters

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 11 19:06:51 PST 2019


phosek created this revision.
phosek added reviewers: beanz, smeenai.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.

This is a follow up to D37644 <https://reviews.llvm.org/D37644>, this block was missed in that change.


Repository:
  rL LLVM

https://reviews.llvm.org/D58093

Files:
  llvm/runtimes/CMakeLists.txt


Index: llvm/runtimes/CMakeLists.txt
===================================================================
--- llvm/runtimes/CMakeLists.txt
+++ llvm/runtimes/CMakeLists.txt
@@ -389,11 +389,9 @@
     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(install-${component}-${name} ${component})
+      set(${component}-${name} ${component})
+      list(APPEND ${name}_extra_targets ${target_name}-install-${component} ${target_name}-${component})
     endforeach()
 
     if(LLVM_INCLUDE_TESTS)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58093.186386.patch
Type: text/x-patch
Size: 790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190212/4b6204d1/attachment.bin>


More information about the llvm-commits mailing list