Merge topic 'clang-scan-deps-no-toolchain-prefix' into release-4.4

5537b3d60e Clang-FindBinUtils: find unprefixed `clang-scan-deps` binaries as well

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !12165
This commit is contained in:
Brad King
2026-06-16 14:17:21 +00:00
committed by Kitware Robot

View File

@@ -52,6 +52,12 @@ find_program(CMAKE_${_CMAKE_PROCESSING_LANGUAGE}_COMPILER_CLANG_SCAN_DEPS NAMES
"${_CMAKE_TOOLCHAIN_PREFIX}clang-scan-deps-${__version_x}"
"${_CMAKE_TOOLCHAIN_PREFIX}clang-scan-deps${__version_x}"
"${_CMAKE_TOOLCHAIN_PREFIX}clang-scan-deps"
# Gentoo, at least, installs associated tools without the prefix. Upstream
# builds also seem to not add toolchain prefixes to `clang-scan-deps`.
"clang-scan-deps-${__version_x_y}"
"clang-scan-deps-${__version_x}"
"clang-scan-deps${__version_x}"
"clang-scan-deps"
HINTS ${__clang_hints}
NO_CMAKE_PATH NO_CMAKE_ENVIRONMENT_PATH
DOC "`clang-scan-deps` dependency scanner"