Skip to content

Commit 5a162b4

Browse files
authored
Merge pull request #70 from chistopher/cppcheck
adjust cppcheck parameters
2 parents f23426d + 4e3063e commit 5a162b4

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

cmake/Cppcheck.cmake

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,25 @@
22
# Function to register a target for cppcheck
33
function(perform_cppcheck check_target target)
44
set(includes "$<TARGET_PROPERTY:${target},INCLUDE_DIRECTORIES>")
5-
5+
66
add_custom_target(
77
${check_target}
88
COMMAND
99
${cppcheck_EXECUTABLE}
1010
"$<$<BOOL:${includes}>:-I$<JOIN:${includes},\t-I>>"
11-
--check-config
12-
--enable=warning,performance,portability,information,missingInclude
13-
--quiet
11+
--enable=all
1412
--std=c++11
1513
--verbose
1614
--suppress=missingIncludeSystem
1715
${ARGN}
1816
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
1917
)
20-
18+
2119
set_target_properties(${check_target}
2220
PROPERTIES
2321
FOLDER "Maintenance"
2422
EXCLUDE_FROM_DEFAULT_BUILD 1
2523
)
26-
24+
2725
add_dependencies(${check_target} ${target})
2826
endfunction()

0 commit comments

Comments
 (0)