Add the clang-tidy folder as hint for finding run-clang-tidy

This commit is contained in:
Mark Jansen 2025-02-24 19:41:06 +01:00 committed by Chris Thrasher
parent 7b6b9a0233
commit eb2a1a92ac

View File

@ -22,7 +22,8 @@ endif()
# Find Python and run-clang-tidy script
find_package(Python 3 REQUIRED)
find_program(RUN_CLANG_TIDY run-clang-tidy)
get_filename_component(CLANG_TIDY_DIR ${CLANG_TIDY_EXECUTABLE} DIRECTORY)
find_program(RUN_CLANG_TIDY run-clang-tidy HINTS ${CLANG_TIDY_DIR})
if(NOT RUN_CLANG_TIDY)
message(FATAL_ERROR "Failed to find run-clang-tidy script")
endif()