File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ endif()
3737
3838set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
3939if (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" )
4142endif ()
4243
4344include (CMakePrintHelpers)
@@ -149,5 +150,11 @@ if(BEMAN_SCOPE_BUILD_TESTS)
149150endif ()
150151
151152if (BEMAN_SCOPE_BUILD_EXAMPLES)
153+ if (CLANG_TIDY_EXE)
154+ message (STATUS "clang-tidy found: ${CLANG_TIDY_EXE} " )
155+ set (CMAKE_CXX_CLANG_TIDY
156+ "${CLANG_TIDY_EXE} ;-extra-arg=--Wno-error=unknown-argument"
157+ )
158+ endif ()
152159 add_subdirectory (examples)
153160endif ()
You can’t perform that action at this time.
0 commit comments