mirror of
https://github.com/SFML/SFML.git
synced 2025-03-14 01:40:05 +08:00
Add the clang-tidy folder as hint for finding run-clang-tidy
This commit is contained in:
parent
7b6b9a0233
commit
eb2a1a92ac
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user