cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Sun, 6 May 2018 15:42:16 +0000 (16:42 +0100)
commitf1da52f867ffe22253181de88439c879749750b3
treefd207e6717f792d47d214983d1b99cde4eb05714
parent398d4db0134aed48c42663d48b7e28e9e7ce7cff
cmake: resolve symlinks in ClangConfig.cmake

Ensure that symlinks such as /usr/lib/cmake/clang-X.Y (pointing to
/usr/lib/llvm-X.Y/lib/cmake/llvm) are resolved. This ensures that
CLANG_INSTALL_PREFIX ends up to be /usr/lib/llvm-X.Y instead of /usr.

Partially addresses PR37128

Gbp-Pq: Name 0001-tools-clang-cmake-resolve-symlinks-in-ClangConfig.cmake.patch
clang/cmake/modules/CMakeLists.txt