winamp/Src/external_dependencies/cpr/cmake/cppcheck.cmake

11 lines
338 B
CMake

find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck)
if(CMAKE_CXX_CPPCHECK)
list(APPEND CMAKE_CXX_CPPCHECK
"--error-exitcode=1"
"--enable=warning,style"
"--force"
"--inline-suppr"
"--std=c++${CMAKE_CXX_STANDARD}"
"--suppressions-list=${CMAKE_SOURCE_DIR}/CppCheckSuppressions.txt")
endif()