Skip to content

Commit 3fd4b1a

Browse files
committed
fix: pass build directory to clang-tidy-cache
1 parent 1d5cb52 commit 3fd4b1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/StaticAnalyzers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ macro(enable_clang_tidy)
3737
if(CLANGTIDY_CACHE)
3838
# use clang-tidy-cache if found
3939
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
40-
set(CLANGTIDY ${CLANGTIDY_CACHE})
40+
set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
4141
else()
4242
# otherwise use clang-tidy directly
4343
find_program(CLANGTIDY clang-tidy)

0 commit comments

Comments
 (0)