Skip to content

Commit 084e330

Browse files
committed
fix: pass build directory to clang-tidy-cache
1 parent 1124f46 commit 084e330

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
@@ -65,7 +65,7 @@ macro(enable_clang_tidy)
6565
if(CLANGTIDY_CACHE)
6666
# use clang-tidy-cache if found
6767
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
68-
set(CLANGTIDY ${CLANGTIDY_CACHE})
68+
set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
6969
else()
7070
# otherwise use clang-tidy directly
7171
find_program(CLANGTIDY clang-tidy)

0 commit comments

Comments
 (0)