Skip to content

Commit c1cc324

Browse files
add NO_STATIC_ANALYSIS cache variable
1 parent 60df4b7 commit c1cc324

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ project(libcyphal
1515

1616
# Use -DNO_STATIC_ANALYSIS=1 to suppress static analysis.
1717
# If not suppressed, the tools used here shall be available, otherwise the build will fail.
18+
option(NO_STATIC_ANALYSIS "Disable static analysis (e.g. clang-tidy). If OFF, the tools must be available." OFF)
1819
if (NOT NO_STATIC_ANALYSIS)
1920
# clang-tidy (separate config files per directory)
2021
find_program(clang_tidy NAMES clang-tidy)

0 commit comments

Comments
 (0)