[runtimes] Fix installation for LLVM_RUNTIME_DISTRIBUTION_COMPONENTS
authorShoaib Meenai <smeenai@fb.com>
Thu, 23 Jan 2020 06:16:28 +0000 (22:16 -0800)
committerShoaib Meenai <smeenai@fb.com>
Tue, 28 Jan 2020 01:00:18 +0000 (17:00 -0800)
The installation target we create should trigger the corresponding
installation target in the runtimes external project.

Differential Revision: https://reviews.llvm.org/D73251

llvm/runtimes/CMakeLists.txt

index e98c61c..f010b76 100644 (file)
@@ -430,7 +430,7 @@ else() # if this is included from LLVM's CMake
 
     foreach(component ${LLVM_RUNTIME_DISTRIBUTION_COMPONENTS})
       set(${component}-${name} ${component})
-      set(install-${component}-${name} ${component})
+      set(install-${component}-${name} install-${component})
       list(APPEND ${name}_extra_targets ${component}-${name} install-${component}-${name})
     endforeach()