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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1387011

Title:
  llvm cmake files incorrectly generated

To manage notifications about this bug go to:
https://bugs.launchpad.net/llvm/+bug/1387011/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to