From e142764b77f4b8d0c36ec88406300c5f876743fb Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Wed, 25 Sep 2024 17:41:07 -0500 Subject: [PATCH] Bump minimum C++ standard to 17 (#1144) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5548ceccc..dcf03178f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,7 @@ include(CMakeDependentOption) ## CMake global variables option(BUILD_SHARED_LIBS "Build GEOS with shared libraries" ON) -set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard version to use (default is 14)") +set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard version to use (minimum requirement is c++17)") ## GEOS custom variables option(BUILD_BENCHMARKS "Build GEOS benchmarks" OFF) @@ -203,7 +203,7 @@ set(CMAKE_CXX_EXTENSIONS OFF) # Target geos_cxx_flags: common compilation flags #----------------------------------------------------------------------------- add_library(geos_cxx_flags INTERFACE) -target_compile_features(geos_cxx_flags INTERFACE cxx_std_11) +target_compile_features(geos_cxx_flags INTERFACE cxx_std_17) #----------------------------------------------------------------------------- # Add flags to prevent 'fused multiply-add' operations on targets (ARM64)