Commit 95183c35 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 0063b501
......@@ -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
--suppressions-list=${CMAKE_BINARY_DIR}/CppCheck_Suppressions.txt
--project=${CMAKE_BINARY_DIR}/compile_commands.json
# Force cppcheck to check when we use project-wide macros
......
Markdown is supported
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