<div dir="ltr"><div><div>I think there are still problems with the CMake files installed by the Debian packages at <a href="http://llvm.org/apt/">http://llvm.org/apt/</a>. While it does install the files listed<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
$ dpkg -c llvm-3.5-dev_1%3a3.5~svn210093-1~exp1_amd64.deb |grep cmake<br>drwxr-xr-x root/root 0 2014-06-03 06:57 ./usr/share/llvm-3.5/cmake/<br>-rw-r--r-- root/root 1223 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/HandleLLVMStdlib.cmake<br>
-rw-r--r-- root/root 5550 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/TableGen.cmake<br>-rw-r--r-- root/root 17272 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/HandleLLVMOptions.cmake<br>-rw-r--r-- root/root 3162 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/LLVMParseArguments.cmake<br>
-rw-r--r-- root/root 492 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/AddLLVMDefinitions.cmake<br>-rw-r--r-- root/root 1064 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/GetSVN.cmake<br>-rw-r--r-- root/root 13863 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/LLVMExports.cmake<br>
-rw-r--r-- root/root 13290 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/LLVMConfig.cmake<br>-rw-r--r-- root/root 846 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/FindSphinx.cmake<br>-rw-r--r-- root/root 2224 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/LLVMProcessSources.cmake<br>
-rw-r--r-- root/root 3900 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/ChooseMSVCCRT.cmake<br>-rw-r--r-- root/root 23319 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/AddLLVM.cmake<br>-rw-r--r-- root/root 6645 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/LLVM-Config.cmake<br>
-rw-r--r-- root/root 2268 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/AddSphinxTarget.cmake<br>-rw-r--r-- root/root 445 2014-06-03 06:56 ./usr/share/llvm-3.5/cmake/LLVMConfigVersion.cmake<br></blockquote><br><br>
</div>The files contain bad internal filenames. For example, if you try to build an LLVM pass according to the LLVM instructions <a href="http://llvm.org/docs/CMake.html#cmake-out-of-source-pass">http://llvm.org/docs/CMake.html#cmake-out-of-source-pass</a> <br>
</div>it will give the error<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">CMake Error at /usr/share/llvm-3.5/cmake/LLVMConfig.cmake:43 (include):<br>
include could not find load file:<br><br> /usr/lib/llvm-3.5/share/llvm/cmake/LLVMExports.cmake<br></blockquote><div><br></div><div>where we can see it is looking in the folder /usr/lib/llvm-3.5/share/llvm/cmake/, instead of /usr/share/llvm-3.5/cmake/ where the file LLVMExports.cmake is actually located.<br>
<br></div><div>Jeremy<br></div></div>