cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerRaspbian forward porter <root@raspbian.org>
Thu, 11 Jul 2019 03:08:05 +0000 (04:08 +0100)
commitd0c3b3feea48e30e2468c85dc4690fe41689298d
tree28f8fa0846b64be59b560129caae0141cec2c32c
parentcc2aca3b9294820e14be91b53733b8212a694bdd
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