mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Fix add_llvm_external_project.
r250835 unintentionally discarded the optional parameter to the add_llvm_external_project() macro that may point to a path when the said path is different from ${name}. This should fix it by passing ${ARGN} on to add_llvm_subdirectory(). The problem manifests itself with e.g. add_llvm_external_project(clang-tools-extra extra) from clang/tools/CMakeLists.txt Patch by Luchesar V. Iliev. llvm-svn: 251001
This commit is contained in:
parent
09f1fb553d
commit
a014a467dc
@ -781,7 +781,7 @@ endmacro()
|
|||||||
# enable or disable building it with everything else.
|
# enable or disable building it with everything else.
|
||||||
# Additional parameter can be specified as the name of directory.
|
# Additional parameter can be specified as the name of directory.
|
||||||
macro(add_llvm_external_project name)
|
macro(add_llvm_external_project name)
|
||||||
add_llvm_subdirectory(LLVM TOOL ${name})
|
add_llvm_subdirectory(LLVM TOOL ${name} ${ARGN})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(add_llvm_tool_subdirectory name)
|
macro(add_llvm_tool_subdirectory name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user