1
0

cppcheck.cmake 338 B

12345678910
  1. find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck)
  2. if(CMAKE_CXX_CPPCHECK)
  3. list(APPEND CMAKE_CXX_CPPCHECK
  4. "--error-exitcode=1"
  5. "--enable=warning,style"
  6. "--force"
  7. "--inline-suppr"
  8. "--std=c++${CMAKE_CXX_STANDARD}"
  9. "--suppressions-list=${CMAKE_SOURCE_DIR}/CppCheckSuppressions.txt")
  10. endif()