[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, 23 Jul 2022 21:01:02 +0000 (22:01 +0100)
commit5cd251795b31eae5b7c7b33d26af9664262cfee8
tree338ca6a35c7382892e17357bb86f2dfb5e5b6724
parent1dcb5aeb6fff6b45d99bd94d5a3827e95ccd12e6
[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
cmake/Modules/FindPrefixFromConfig.cmake