[cmake,clang-tidy] do not use explicit .clang-tidy

if not explicitly added the nearest .clang-tidy file to the compiled
source is used.
This commit is contained in:
akallabeth
2024-08-29 10:41:07 +02:00
parent 6a5d6d0514
commit af813a0929
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ if (BUILD_WITH_CLANG_TIDY)
include(ClangDetectTool)
clang_detect_tool(CLANG_TIDY_EXE clang-tidy REQUIRED)
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}" --config-file=${CMAKE_SOURCE_DIR}/.clang-tidy)
set(CLANG_TIDY_COMMAND "${CLANG_TIDY_EXE}")
set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY_COMMAND}" --extra-arg=-std=gnu11)
set(CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND}" --extra-arg=-std=gnu++17)