Skip to content

Commit b55f461

Browse files
committed
Use configured C++ version for cppcheck
1 parent 029fbb0 commit b55f461

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ if(CPPCHECK)
103103
# cpp doesn't find system includes for some reason, suppress that report
104104
set(CPPCHECK_OPTIONS ${CPPCHECK_OPTIONS} --suppress=missingIncludeSystem)
105105

106-
add_custom_target(cppcheck ${CPPCHECK} --std=c++17 ${CPPCHECK_OPTIONS} ${CMAKE_SOURCE_DIR}/src/*pp)
106+
add_custom_target(cppcheck ${CPPCHECK} --std=c++${USE_CPP_VERSION} ${CPPCHECK_OPTIONS} ${CMAKE_SOURCE_DIR}/src/*pp)
107107
else()
108108
message(STATUS "Looking for cppcheck - not found")
109109
message(STATUS " Build target 'cppcheck' will not be available")

0 commit comments

Comments
 (0)