Skip to content

Commit

Permalink
run clang tidy only when installed
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnrd committed Apr 20, 2022
1 parent 60ddd52 commit 46a618c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ set(CMAKE_CXX_EXTENSIONS OFF)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)

set(CMAKE_CXX_CLANG_TIDY clang-tidy; -header-filter=reactor-cpp/.;)
find_program(CLANG_TIDY clang-tidy)
if (CLANG_TIDY)
set(CMAKE_CXX_CLANG_TIDY clang-tidy; -header-filter=reactor-cpp/.;)
endif()

find_package (Threads)

Expand Down

0 comments on commit 46a618c

Please sign in to comment.