Fix add_llvm_external_project.
authorManuel Klimek <klimek@google.com>
Thu, 22 Oct 2015 08:31:46 +0000 (08:31 +0000)
committerManuel Klimek <klimek@google.com>
Thu, 22 Oct 2015 08:31:46 +0000 (08:31 +0000)
commitb217a9a460e8e147f482b117b6a86d3e152cdef1
tree1b6e5780386d341b5bc3730430b89b7b897c40be
parent5db595015179e5e2db1afb5d8c9c55c0413217ca
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.

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