File: staticAnalyzers.cmake

package info (click to toggle)
libmatio 1.5.30-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 34,656 kB
  • sloc: sh: 126,066; ansic: 22,630; makefile: 647; python: 215
file content (20 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if(MATIO_ENABLE_CPPCHECK)
    find_program(CPPCHECK cppcheck)
    if(CPPCHECK)
        set(CMAKE_C_CPPCHECK ${CPPCHECK}
            --language=c
            --quiet
            --check-level=exhaustive
            --suppress=checkersReport
            --suppress=unusedFunction
            --suppress=unmatchedSuppression
            --suppress=missingInclude
            --suppress=missingIncludeSystem
            --enable=all
            --inline-suppr
            --inconclusive
        )
    else()
        message(SEND_ERROR "Cppcheck requested but executable not found.")
    endif()
endif()