mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
3b80cd77fb
This allows the build failure to be tuned with cppcheck's options --error-exitcode=<n> and --exitcode-suppressions=<file>.
4 lines
97 B
CMake
4 lines
97 B
CMake
enable_language(C)
|
|
set(CMAKE_C_CPPCHECK "${PSEUDO_CPPCHECK}" -error)
|
|
add_executable(main main.c)
|