Skip to content

Commit

Permalink
Fixed clang-tidy on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlieb authored and lelandjansen committed Nov 10, 2017
1 parent 1622c24 commit 6a89d5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -8,8 +8,11 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_program(clang_tidy_executable NAMES
clang-tidy
clang-tidy-5.0)
set(clang_tidy_line_filters "[{'name': 'external/*'}]")
set(base_clang_tidy "clang-tidy-5.0;-line-filter=${clang_tidy_line_filters}")
set(base_clang_tidy "${clang_tidy_executable};-line-filter=${clang_tidy_line_filters}")
if(CMAKE_BUILD_TYPE MATCHES DEBUG)
message("DEBUG mode")
set(build_type_flags "-g -Og --coverage -fno-exceptions")
Expand Down

0 comments on commit 6a89d5b

Please sign in to comment.