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:
parent
919639bd27
commit
09b0a68b26
|
@ -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!")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user