Fix bug in cppcheck in tool.cmake (#1988)

Ref: https://github.com/HDFGroup/hdf5/pull/1985#issuecomment-1211046328
This commit is contained in:
luzpaz 2022-08-10 15:19:26 -04:00 committed by GitHub
parent 4c73c284e0
commit f04312a792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ find_program(CPPCHECK_EXE NAMES "cppcheck")
mark_as_advanced(FORCE CPPCHECK_EXE)
if(CPPCHECK_EXE)
message(STATUS "cppcheck found: ${CPPCHECK_EXE}")
if(CPPECHECK)
if(CPPCHECK)
set(CMAKE_CXX_CPPCHECK
"${CPPCHECK_EXE};--enable=warning,performance,portability,missingInclude;--template=\"[{severity}][{id}] {message} {callstack} \(On {file}:{line}\)\";--suppress=missingIncludeSystem;--quiet;--verbose;--force"
)