<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div style="direction: inherit;">Timo, if you want to have LLVM in-tree with your project, and your project builds with CMake, all you should need to do is call "add_subdirectory(llvm)" in the CMakeLists.txt file at the directory where the submodule gets checked out.</div><div style="direction: inherit;"><br></div>-Chris</div><div><br>On Oct 11, 2016, at 1:07 PM, Chuck Atkins via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Timo,<br></div></div>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.<br><br></div><div class="gmail_extra">- Chuck<br></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>LLVM Developers mailing list</span><br><span><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></span><br><span><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br></div></blockquote></body></html>