<p dir="ltr"><br>
On 9 Sep 2014 06:49, "David Farler" <<a href="mailto:accumulator@icloud.com">accumulator@icloud.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I can't seem to get the simplest CMakeLists.txt file working from<a href="http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project">http://llvm.org/docs/CMake.html#embedding-llvm-in-your-project</a>. Do any of the LLVM projects use `find_package(LLVM REQUIRED CONFIG)`?</p>
<p dir="ltr">This should work. Are you building LLVM with CMake or Autoconf/Makefile build system?</p>
<p dir="ltr">If you build with CMake you can build your application using the LLVM build or install directory. If you built LLVM with Autoconf/Makefiles then you can only build your application using the LLVM install directory.</p>
<p dir="ltr">Should I just be using `llvm-config` directly?</p>
<p dir="ltr">No. If you are using CMake this is the right way to do it.</p>
<p dir="ltr">When I'm at a real computer rather than my phone I'll take a proper look.<br>
</p>