Comment 13 for bug 1387011

Revision history for this message
In , Paweł Bylica (chfast) wrote :

llvm-3.6-dev package has cmake files in /usr/share/llvm-3.6/cmake. There is LLVMConfig.cmake file in that location containing a variable LLVM_CMAKE_DIR set to /usr/lib/llvm-3.6/share/llvm/cmake. That script also fails to load other scripts from the "old" location: `include("${LLVM_CMAKE_DIR}/LLVMExports.cmake")`.

If `find_package(LLVM 3.6 CONFIG)` command used, cmake will search for LLVMConfig.cmake file in /usr/share/llvm-3.6/cmake and /usr/lib/llvm-3.6/cmake. So maybe instead of generating cmake shared files in build-dir/share/llvm/cmake is better to generated them in build-dir/cmake. Then there is not need to move them by package script.