aboutsummaryrefslogtreecommitdiff
path: root/cmake/CppCheck.cmake
blob: d8a4559100503b6c8876a55ba38ffb165433b5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck)

if(CMAKE_CXX_CPPCHECK)
    list(APPEND CMAKE_CXX_CPPCHECK
        --std=c++20
        --enable=all
        --inconclusive
        --quiet
        --suppressions-list=${PROJECT_SOURCE_DIR}/CppCheckSuppressions.txt
    )
endif()