[llvm-dev] Embedding llvm as a git submodule in Project (original) (raw)
Timo Janssen via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 12 02:54:37 PDT 2016
- Previous message: [llvm-dev] Embedding llvm as a git submodule in Project
- Next message: [llvm-dev] On Loop Distribution pass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
That way it works. I Found it in the cmake docs yesterday and through a google search but I put the wrong path in my CMakeLists.txt. Now everything works with find_package.
Thanks all.
Am 11.10.2016 um 22:07 schrieb Chuck Atkins:
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 findpackage, you can see it's search heuristics and that if you set the CMake variable LLVMDIR to /path/to/llvm-build-dir/lib/cmake/llvm/ then findpackage should work.
- Chuck
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161012/6bf1c537/attachment.html>
- Previous message: [llvm-dev] Embedding llvm as a git submodule in Project
- Next message: [llvm-dev] On Loop Distribution pass
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]