mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[CMake] Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly specified.
One part of my refactoring from r242705 is untenable due to how CMake caches variables. There is no way other than caching to allow variables to be set in one directory and globally readable, but we really don't want to cache the temporary value marking that a directory has already been included. llvm-svn: 242793
This commit is contained in:
parent
7ded368332
commit
db73898a0e
@ -761,16 +761,6 @@ function(add_llvm_implicit_projects)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
get_cmake_property(variableNames VARIABLES)
|
||||
foreach (variableName ${variableNames})
|
||||
get_project_name_from_src_var(${variableName} projectName)
|
||||
if(projectName)
|
||||
string(TOLOWER ${projectName} projectName)
|
||||
list(APPEND list_of_implicit_subdirs ${projectName})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
list(REMOVE_DUPLICATES list_of_implicit_subdirs)
|
||||
foreach(external_proj ${list_of_implicit_subdirs})
|
||||
add_llvm_external_project("${external_proj}")
|
||||
endforeach()
|
||||
|
@ -30,6 +30,13 @@ if(CYGWIN OR NOT LLVM_ENABLE_PIC)
|
||||
set(LLVM_TOOL_LLVM_LTO_BUILD Off)
|
||||
endif()
|
||||
|
||||
# Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly
|
||||
# specified.
|
||||
add_llvm_external_project(clang)
|
||||
add_llvm_external_project(llgo)
|
||||
add_llvm_external_project(lld)
|
||||
add_llvm_external_project(lldb)
|
||||
|
||||
# Automatically add remaining sub-directories containing a 'CMakeLists.txt'
|
||||
# file as external projects.
|
||||
add_llvm_implicit_projects()
|
||||
|
Loading…
Reference in New Issue
Block a user