mirror of
https://github.com/triqs/dft_tools
synced 2024-09-27 03:50:51 +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
|
--std=c++17
|
||||||
--template=gcc
|
--template=gcc
|
||||||
--verbose
|
--verbose
|
||||||
|
--force
|
||||||
--quiet
|
--quiet
|
||||||
${sources}
|
${sources}
|
||||||
|
WORKING_DIRECTORY
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
message(STATUS "cppcheck not found in $PATH. Please consider installing cppcheck for additional checks!")
|
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
|
--std=c++17
|
||||||
--template=gcc
|
--template=gcc
|
||||||
--verbose
|
--verbose
|
||||||
|
--force
|
||||||
--quiet
|
--quiet
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/${test}.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/${test}
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
Reference in New Issue
Block a user