Debian Codegraph @

matio-1.5.30/cmake/staticAnalyzers.cmake

raw
1 if(MATIO_ENABLE_CPPCHECK)
2 find_program(CPPCHECK cppcheck)
3 if(CPPCHECK)
4 set(CMAKE_C_CPPCHECK ${CPPCHECK}
5 --language=c
6 --quiet
7 --check-level=exhaustive
8 --suppress=checkersReport
9 --suppress=unusedFunction
10 --suppress=unmatchedSuppression
11 --suppress=missingInclude
12 --suppress=missingIncludeSystem
13 --enable=all
14 --inline-suppr
15 --inconclusive
16 )
17 else()
18 message(SEND_ERROR "Cppcheck requested but executable not found.")
19 endif()
20 endif()