]> granicus.if.org Git - llvm/commitdiff
[CMake] Fix ability to use LLVM_ENABLE_PROJECTS with LLVM_EXTERNAL_PROJECTS
authorChris Bieneman <chris.bieneman@me.com>
Thu, 14 Feb 2019 20:57:17 +0000 (20:57 +0000)
committerChris Bieneman <chris.bieneman@me.com>
Thu, 14 Feb 2019 20:57:17 +0000 (20:57 +0000)
LLVM r353148, changed the circumstances in which the project source directory variables are created to only create them for LLVM projects. This patch initializes the directory variables for projects specified in `LLVM_EXTERNAL_PROJECTS` as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354060 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index db35afc2690025d075b73b421abb75f40665ee0f..418dfa8bc3c5ffc923b80576744faf42c1305fbb 100644 (file)
@@ -130,7 +130,7 @@ mark_as_advanced(LLVM_ENABLE_PROJECTS_USED)
 
 if (LLVM_ENABLE_PROJECTS_USED OR NOT LLVM_ENABLE_PROJECTS STREQUAL "")
   set(LLVM_ENABLE_PROJECTS_USED ON CACHE BOOL "" FORCE)
-  foreach(proj ${LLVM_ALL_PROJECTS})
+  foreach(proj ${LLVM_ALL_PROJECTS} ${LLVM_EXTERNAL_PROJECTS})
     string(TOUPPER "${proj}" upper_proj)
     string(REGEX REPLACE "-" "_" upper_proj ${upper_proj})
     if ("${proj}" IN_LIST LLVM_ENABLE_PROJECTS)