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

[cmake] Fix cppcheck invocation, add --force to cppcheck options

This commit is contained in:
Nils Wentzell 2019-11-21 11:54:10 -05:00
parent 919639bd27
commit 09b0a68b26
2 changed files with 5 additions and 1 deletions

View File

@ -47,8 +47,11 @@ if(ANALYZE_SOURCES)
--std=c++17
--template=gcc
--verbose
--force
--quiet
${sources}
WORKING_DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}
)
else()
message(STATUS "cppcheck not found in $PATH. Please consider installing cppcheck for additional checks!")

View File

@ -30,8 +30,9 @@ foreach(test ${all_tests})
--std=c++17
--template=gcc
--verbose
--force
--quiet
${CMAKE_CURRENT_SOURCE_DIR}/${test}.cpp
${CMAKE_CURRENT_SOURCE_DIR}/${test}
)
endif()
endforeach()