[PATCH] [clang] cmake: resolve symlinks in ClangConfig.cmake
authorPeter Wu <peter@lekensteyn.nl>
Fri, 4 May 2018 13:55:26 +0000 (15:55 +0200)
committerScott Kitterman <scott@kitterman.com>
Fri, 15 May 2020 16:25:16 +0000 (17:25 +0100)
commita3eb22c0d65b9918085a6634de66bcd52acfa464
tree3dd8e0bb0ab7e40703d74c0957a01e25a705a747
parent73661c37fa3fb148d12586ccbf1c3226b39f74d4
[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