[CMake] Honor LLVM_EXTERNAL_<proj>_SOURCE_DIR
authorDavid Greene <greened@obbligato.org>
Fri, 22 Feb 2019 21:19:48 +0000 (21:19 +0000)
committerDavid Greene <greened@obbligato.org>
Fri, 22 Feb 2019 21:19:48 +0000 (21:19 +0000)
commit3b9141df25dfb9e6811ae76ba8e1870adb63020a
tree1308e9c75f489830243ff960362f2d663ec7d524
parent07cda257f84ba773ee6dd0b140889c59f6459f39
[CMake] Honor LLVM_EXTERNAL_<proj>_SOURCE_DIR

When LLVM_ENABLE_PROJECTS is set, CMake assumes the project
directories are all side-by-side. This is not always the case and
there's no reason to expect it if LLVM_EXTERNAL_<proj>_SOURCE_DIR is
set. Honor that setting if it exists and allow the build configuration
to continue.

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

llvm-svn: 354693
llvm/CMakeLists.txt