Skip to content

Commit

Permalink
Bump minimum C++ standard to 17 (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu authored Sep 25, 2024
1 parent c85a07d commit e142764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e142764

Please sign in to comment.