3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-29 08:24:54 +02:00

[cmake] For ANALYZE_SOURCES=ON run cppcheck in c++20 mode

This commit is contained in:
Nils Wentzell 2021-06-07 14:20:10 -04:00
parent 31649d25b2
commit 1c6d29d6a3
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ if(ANALYZE_SOURCES)
TARGET ${PROJECT_NAME}_c TARGET ${PROJECT_NAME}_c
COMMAND ${CPPCHECK_EXECUTABLE} COMMAND ${CPPCHECK_EXECUTABLE}
--enable=warning,style,performance,portability --enable=warning,style,performance,portability
--std=c++17 --std=c++20
--template=gcc --template=gcc
--verbose --verbose
--force --force

View File

@ -24,7 +24,7 @@ foreach(test ${all_tests})
TARGET ${test_name} TARGET ${test_name}
COMMAND ${CPPCHECK_EXECUTABLE} COMMAND ${CPPCHECK_EXECUTABLE}
--enable=warning,style,performance,portability --enable=warning,style,performance,portability
--std=c++17 --std=c++20
--template=gcc --template=gcc
--verbose --verbose
--force --force