Commit 64a2e0c2 authored by Peterson, Peter's avatar Peterson, Peter
Browse files

Set c++ standard for cppcheck to validate against

To keep things syncronized with the flags cmake gives the compiler, just
use the version set in cmake in the second place.
parent 8cc569d4
......@@ -10,6 +10,7 @@ if ( CPPCHECK_EXECUTABLE )
# setup the standard arguments
# --inline-suppr appears to be ignored if --suppresions-list is specified
set ( CPPCHECK_ARGS --enable=all --inline-suppr --max-configs=120
--std=c++${CMAKE_CXX_STANDARD} # use the standard from cmake
# Force cppcheck to check when we use project-wide macros
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment