mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user