We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d5cb52 commit 3fd4b1aCopy full SHA for 3fd4b1a
1 file changed
src/StaticAnalyzers.cmake
@@ -37,7 +37,7 @@ macro(enable_clang_tidy)
37
if(CLANGTIDY_CACHE)
38
# use clang-tidy-cache if found
39
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
40
- set(CLANGTIDY ${CLANGTIDY_CACHE})
+ set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
41
else()
42
# otherwise use clang-tidy directly
43
find_program(CLANGTIDY clang-tidy)
0 commit comments