Teach LLVMConfig to avoid modifying CMAKE_MODULE_PATH
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 9 Feb 2014 16:35:40 +0000 (16:35 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 9 Feb 2014 16:35:40 +0000 (16:35 +0000)
commit6574a84331530911502c2f02732299a1ca93ab07
treed237ee43e1e4e174a44a402ec3e3227c0917bbd6
parent5534cb3f570de54eeb1b1787296074f3a35ca2a7
Teach LLVMConfig to avoid modifying CMAKE_MODULE_PATH

Do not modify this value on the application's behalf and just ensure API
modules are always available next to the LLVMConfig module.  This is
already the case in the install tree so use file(COPY) to make it so in
the build tree.  Include the LLVM-Config API module from next to the
LLVMConfig location.

Contributed by Brad King.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201047 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/CMakeLists.txt
cmake/modules/LLVMConfig.cmake.in