Skip to content
Snippets Groups Projects
Commit 36b65f0f authored by jwendt's avatar jwendt
Browse files

enable all cppchecks

closes #205
parent 380611ca
No related branches found
No related tags found
1 merge request!94Feature/#205 more cppcheck checks
...@@ -30,12 +30,13 @@ if(NOT CPPCHECK_COMMAND) ...@@ -30,12 +30,13 @@ if(NOT CPPCHECK_COMMAND)
" ERROR: Could not find cppcheck. " ERROR: Could not find cppcheck.
Having cppcheck is a mandatory requirement. Having cppcheck is a mandatory requirement.
CMake will not generate the project without it. 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() else()
message(STATUS "Use cppcheck from: ${CPPCHECK_COMMAND}") message(STATUS "Use cppcheck from: ${CPPCHECK_COMMAND}")
endif() 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) if(MSVC)
list(APPEND CPPCHECK_ARGUMENTS --template=vs) list(APPEND CPPCHECK_ARGUMENTS --template=vs)
elseif(CLANG) elseif(CLANG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment