We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1124f46 commit 084e330Copy full SHA for 084e330
1 file changed
src/StaticAnalyzers.cmake
@@ -65,7 +65,7 @@ macro(enable_clang_tidy)
65
if(CLANGTIDY_CACHE)
66
# use clang-tidy-cache if found
67
set($ENV{CLANG_TIDY_CACHE_BINARY} ${CLANGTIDY_CACHE})
68
- set(CLANGTIDY ${CLANGTIDY_CACHE})
+ set(CLANGTIDY ${CLANGTIDY_CACHE} -p "${CMAKE_CURRENT_BINARY_DIR}")
69
else()
70
# otherwise use clang-tidy directly
71
find_program(CLANGTIDY clang-tidy)
0 commit comments