diff --git a/cmake/cppcheck.cmake b/cmake/cppcheck.cmake index aef1a69f13d330e61bbdfb47122525c2423c546d..0f0416429527034f4cb413afef17df299c27f293 100644 --- a/cmake/cppcheck.cmake +++ b/cmake/cppcheck.cmake @@ -30,12 +30,13 @@ if(NOT CPPCHECK_COMMAND) " ERROR: Could not find cppcheck. Having cppcheck is a mandatory requirement. CMake will not generate the project without it. - Add its location to the environments variables PATH or CPPCHECK_DIR.") + Add its location to the environments variables PATH or CPPCHECK_DIR. + However, this should normally be supplied by conan!") else() message(STATUS "Use cppcheck from: ${CPPCHECK_COMMAND}") endif() -set(CPPCHECK_ARGUMENTS --enable=warning,performance,portability,missingInclude,unusedFunction --error-exitcode=1 --quiet --verbose) +set(CPPCHECK_ARGUMENTS --enable=warning,performance,portability,missingInclude,unusedFunction,style --error-exitcode=1 --quiet --verbose) if(MSVC) list(APPEND CPPCHECK_ARGUMENTS --template=vs) elseif(CLANG)