cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 9 Aug 2018 08:06:11 +0000 (09:06 +0100)
commit6384f48d6babdbd57de7e7a5363e15e8e30e6756
tree43f61f23338f485394d4d615454679e94c4cd7c6
parent20647fcf93bc508f10cc7ddb78fc940ef97c7ba2
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