We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5497ffe commit 525b7beCopy full SHA for 525b7be
CMakeLists.txt
@@ -435,7 +435,7 @@ if (SQLITECPP_RUN_CPPCHECK)
435
# add a cppcheck target to the "all" target
436
add_custom_target(SQLiteCpp_cppcheck
437
ALL
438
- COMMAND ${CPPCHECK_EXECUTABLE} -j 8 cppcheck --enable=style --quiet ${CPPCHECK_ARG_TEMPLATE} ${PROJECT_SOURCE_DIR}/src
+ COMMAND ${CPPCHECK_EXECUTABLE} -j 8 cppcheck --enable=style --quiet ${CPPCHECK_ARG_TEMPLATE} ${PROJECT_SOURCE_DIR}/src --error-exitcode=2
439
)
440
execute_process(COMMAND "${CPPCHECK_EXECUTABLE}" --version OUTPUT_VARIABLE CPPCHECK_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
441
message(STATUS "Found Cppcheck: ${CPPCHECK_EXECUTABLE} (found version ${CPPCHECK_VERSION})")
0 commit comments