diff options
| author | Manuel Klimek <klimek@google.com> | 2015-10-22 08:31:46 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2015-10-22 08:31:46 +0000 |
| commit | f80abb9ec7cea99583ebd709ab3dd343105dcf2a (patch) | |
| tree | db2aba6e424a61b2f10b1f8d401823cf7f435df2 /llvm/cmake | |
| parent | 1b0d7066ff264de87e6b7ff4fc71f273edaf69be (diff) | |
| download | bcm5719-llvm-f80abb9ec7cea99583ebd709ab3dd343105dcf2a.tar.gz bcm5719-llvm-f80abb9ec7cea99583ebd709ab3dd343105dcf2a.zip | |
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
Diffstat (limited to 'llvm/cmake')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 84f3216d6bc..c3e1679bdb5 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -781,7 +781,7 @@ endmacro() # enable or disable building it with everything else. # Additional parameter can be specified as the name of directory. macro(add_llvm_external_project name) - add_llvm_subdirectory(LLVM TOOL ${name}) + add_llvm_subdirectory(LLVM TOOL ${name} ${ARGN}) endmacro() macro(add_llvm_tool_subdirectory name) |

