cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Mon, 30 Dec 2019 14:31:05 +0000 (14:31 +0000)
commitdfa027945ed23e14193588a252483e53723d655f
treeb2fc0040435fabe5741d3083daf4f2dcc89de19c
parentf32319d9a83b993628568b13ffb915eea0a8b8a5
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