Skip to content

Commit 96ab99b

Browse files
Log cppcheck command during configure step
1 parent b4e0a2a commit 96ab99b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

buildconfig/CMake/CppCheckSetup.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ if(CPPCHECK_EXECUTABLE)
6060
list(APPEND _cppcheck_xml_args "${_cppcheck_source_dirs}")
6161
endif(CPPCHECK_GENERATE_XML)
6262

63+
if(NOT WIN32)
64+
message(STATUS "cppcheck configured to run (ignoring xml arguments)")
65+
message(STATUS "remove the project argument to supply files to check")
66+
list(JOIN _cppcheck_args " " _cppcheck_args_for_printing)
67+
message(STATUS "${CPPCHECK_EXECUTABLE} ${_cppcheck_args_for_printing}")
68+
endif()
69+
6370
# generate the target
6471
if(NOT TARGET cppcheck)
6572
add_custom_target(

0 commit comments

Comments
 (0)