[PATCH] [clang] cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 7 Nov 2020 14:53:51 +0000 (14:53 +0000)
commit98c6e70f669d45ce391796e1a93055f6f946e13b
tree60926ea8f39ee41df04940a2dd6c79f6b5e5fb95
parent94e933e7802d7eb7f7dec657aed6aeb4a839e759
[PATCH] [clang] 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