[llvm-dev] Embedding llvm as a git submodule in Project

Chuck Atkins via llvm-dev llvm-dev at lists.llvm.org
Tue Oct 11 13:07:44 PDT 2016


Hi Timo,
You don't have to run through the entire install before it will work.  You
just need to be able to locate an LLVMConfig.cmake, which is generated from
the configure step.  After the initial cmake configure pass, you should
have a ./lib/cmake/llvm/LLVMConfig.cmake in the llvm build directory.  If
you look at the CMake docs for find_package, you can see it's search
heuristics and that if you set the CMake variable LLVM_DIR to
/path/to/llvm-build-dir/lib/cmake/llvm/ then find_package should work.

- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161011/309b6eb0/attachment.html>


More information about the llvm-dev mailing list