Skip to content

Commit

Permalink
fix: pass build directory to clang-tidy-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Feb 9, 2022
1 parent 1d5cb52 commit 3fd4b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StaticAnalyzers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ macro(enable_clang_tidy)
if(CLANGTIDY_CACHE)
# use clang-tidy-cache if found
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
set(CLANGTIDY ${CLANGTIDY_CACHE})
set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
else()
# otherwise use clang-tidy directly
find_program(CLANGTIDY clang-tidy)
Expand Down

0 comments on commit 3fd4b1a

Please sign in to comment.