cmake: resolve symlinks in LLVMConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:43:06 +0000 (15:43 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Sun, 6 May 2018 15:42:16 +0000 (16:42 +0100)
commit398d4db0134aed48c42663d48b7e28e9e7ce7cff
treef6599ee863d6fea2433931225c80ec3b5782b177
parenta869d05c838ae481dc7526fbca731e36b46f6439
cmake: resolve symlinks in LLVMConfig.cmake

Ensure that symlinks such as /usr/lib/llvm-X.Y/cmake (pointing to
lib/cmake/llvm) are resolved. This ensures that LLVM_INSTALL_PREFIX
becomes /usr/lib/llvm-X.Y instead of /usr.

Partially addresses PR37128

Gbp-Pq: Name 0001-llvm-cmake-resolve-symlinks-in-LLVMConfig.cmake.patch
cmake/modules/CMakeLists.txt