build: Enable clang-tidy 17 and 18 via CMake

This commit is contained in:
Gabriel Ferreira
2025-01-20 17:20:05 +01:00
parent a26e5c82ee
commit f7e51b1a3c

View File

@@ -260,6 +260,7 @@ macro(process_options)
if(${NS3_CLANG_TIDY})
find_program(
CLANG_TIDY NAMES clang-tidy clang-tidy-14 clang-tidy-15 clang-tidy-16
clang-tidy-17 clang-tidy-18
)
if("${CLANG_TIDY}" STREQUAL "CLANG_TIDY-NOTFOUND")
message(FATAL_ERROR "Clang-tidy was not found")