[cmake] Pass external project source directories to sub-configures
authorShoaib Meenai <smeenai@fb.com>
Thu, 17 Oct 2019 19:24:58 +0000 (19:24 +0000)
committerShoaib Meenai <smeenai@fb.com>
Thu, 17 Oct 2019 19:24:58 +0000 (19:24 +0000)
commite146da5dff67dbfb5bfc6864541577e3a98365e8
tree4d2cd54ae50ff447f2ae28721485b2a9f9594e7f
parent453152dfa858db8e30f727835409a4b1ccd8fbb1
[cmake] Pass external project source directories to sub-configures

We're passing LLVM_EXTERNAL_PROJECTS to cross-compilation configures, so
we also need to pass the source directories of those projects, otherwise
configuration can fail from not finding them.

Differential Revision: https://reviews.llvm.org/D69076

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