mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-20 11:55:54 +01:00
11 lines
338 B
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()
|