Skip to content

Commit e07e87c

Browse files
committed
fix: pass build directory to clang-tidy-cache
1 parent 6b07995 commit e07e87c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StaticAnalyzers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ macro(enable_clang_tidy)
5151
if(CLANGTIDY_CACHE)
5252
# use clang-tidy-cache if found
5353
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
54-
set(CLANGTIDY ${CLANGTIDY_CACHE})
54+
set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
5555
else()
5656
# otherwise use clang-tidy directly
5757
find_program(CLANGTIDY clang-tidy)

0 commit comments

Comments
 (0)