File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ endif()
37
37
38
38
set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
39
39
if (CMAKE_EXPORT_COMPILE_COMMANDS )
40
- set (CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES} )
40
+ set (CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES} )
41
+ find_program (CLANG_TIDY_EXE NAMES clang-tidy clang-tidy-20 DOC "Path to clang-tidy executable" )
41
42
endif ()
42
43
43
44
include (CMakePrintHelpers )
@@ -149,5 +150,9 @@ if(BEMAN_SCOPE_BUILD_TESTS)
149
150
endif ()
150
151
151
152
if (BEMAN_SCOPE_BUILD_EXAMPLES )
153
+ if (CLANG_TIDY_EXE )
154
+ message (STATUS "clang-tidy found: ${CLANG_TIDY_EXE} " )
155
+ set (CMAKE_CXX_CLANG_TIDY "${CLANG_TIDY_EXE} ;-extra-arg=--Wno-error=unknown-argument" )
156
+ endif ()
152
157
add_subdirectory (examples )
153
158
endif ()
You can’t perform that action at this time.
0 commit comments