From 9a91ad1840cb861ca9c192e63af3fe295e29ed56 Mon Sep 17 00:00:00 2001 From: sdhar04 Date: Mon, 22 Jan 2024 22:14:38 +0530 Subject: [PATCH] cppcheck uses c++17 --- cmake/GzCodeCheck.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GzCodeCheck.cmake b/cmake/GzCodeCheck.cmake index 0cb43aa4..22931cbf 100644 --- a/cmake/GzCodeCheck.cmake +++ b/cmake/GzCodeCheck.cmake @@ -17,7 +17,7 @@ function(_gz_setup_target_for_codecheck) endif() # Base set of cppcheck option - set (CPPCHECK_BASE -q --inline-suppr -j 4 --language=c++ --std=c++14 --force) + set (CPPCHECK_BASE -q --inline-suppr -j 4 --language=c++ --std=c++17 --force) if (EXISTS "${PROJECT_BINARY_DIR}/cppcheck.suppress") set (CPPCHECK_BASE ${CPPCHECK_BASE} --suppressions-list=${PROJECT_BINARY_DIR}/cppcheck.suppress) endif()