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)
commit81b580b455426dd885fe4858e5bd3e2f22c00f5f
tree5c0e0e2eb5b3be52ad9ad02f479e6813c1cc6798
parent3097cdc97d134df09cb13190837dbc082b915c93
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.

llvm-svn: 201047
llvm/cmake/modules/CMakeLists.txt
llvm/cmake/modules/LLVMConfig.cmake.in