From 8e2c7efabc122f4ca9af4d283e326715cad48277 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Thu, 30 Nov 2023 21:10:36 -0500 Subject: [PATCH] Update to C++17 (#528) Signed-off-by: Chris Lalancette --- test_security/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_security/CMakeLists.txt b/test_security/CMakeLists.txt index f0f1a6dc..b7761c8c 100644 --- a/test_security/CMakeLists.txt +++ b/test_security/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.7) project(test_security) -# Default to C++14 +# Default to C++17 if(NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_STANDARD_REQUIRED ON) endif() if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic)