CMake: Fix stand-alone clang builds since r353268
commit7112182b13dac8ce759bc90e4368add44cb469e9
authorTom Stellard <tstellar@redhat.com>
Wed, 20 Feb 2019 01:11:05 +0000 (20 01:11 +0000)
committerTom Stellard <tstellar@redhat.com>
Wed, 20 Feb 2019 01:11:05 +0000 (20 01:11 +0000)
treefd3e927b046d78725000ad5dba2c8a3ad327ca97
parent76db3f47cc4004377e13555637d2332be11c919d
CMake: Fix stand-alone clang builds since r353268

Summary:
Handle the case where LLVM_MAIN_SRC_DIR is not set and also use
LLVM_CMAKE_DIR for locating installed cmake files rather than
LLVM_CMAKE_PATH.

Reviewers: phosek, andrewrk, smeenai

Reviewed By: phosek, andrewrk, smeenai

Subscribers: mgorny, cfe-commits, llvm-commits

Tags: #clang, #llvm

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

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