From 81057067e738d5053f6f6cd5900068c5d0028b6d Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Thu, 12 Jan 2023 17:59:43 -0800 Subject: [PATCH] #276: cmake: force 17 standard NOMERGE --- CMakeLists.txt | 2 +- cmake/load_bundled_libraries.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 760070f899..29e2513484 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,7 +39,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED ON) if(NOT CMAKE_CXX_STANDARD) - set(CMAKE_CXX_STANDARD 14 CACHE STRING "The C++ standard to use") + set(CMAKE_CXX_STANDARD 17 CACHE STRING "The C++ standard to use") endif() message(STATUS "CMAKE_CXX_STANDARD: ${CMAKE_CXX_STANDARD}") diff --git a/cmake/load_bundled_libraries.cmake b/cmake/load_bundled_libraries.cmake index 6331d8f93c..3f4d0bcf74 100644 --- a/cmake/load_bundled_libraries.cmake +++ b/cmake/load_bundled_libraries.cmake @@ -3,7 +3,7 @@ include(SetCXXCompilerFlags) # Export a minimum version flag for any bundled libraries that don't set their own -set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD 17) # Optionally include libfort which is used by diagnostics if (vt_libfort_enabled)