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()