From f1360a265457350b94c53088c0d7f5efd139cf02 Mon Sep 17 00:00:00 2001 From: Patrik Huber Date: Sat, 14 Dec 2024 11:04:59 +0000 Subject: [PATCH] Remove old list of EOS_CXX_COMPILE_FEATURES and replace with cxx_std_17 --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e680c81..d965c901 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,8 +9,6 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) # This makes CMake use -std=c++xx instead of -std=gnu++xx -# This list is likely not complete, but it should be sufficient to error out on old compilers that we cannot build on: -set(EOS_CXX_COMPILE_FEATURES cxx_defaulted_functions cxx_generalized_initializers cxx_generic_lambdas cxx_lambdas cxx_nonstatic_member_init cxx_range_for cxx_right_angle_brackets cxx_strong_enums) # All the options for building the library. Can be changed on the command-line or in initial_cache.cmake. message(STATUS "Options:") @@ -126,7 +124,7 @@ set(HEADERS ) add_library(eos INTERFACE) -target_compile_features(eos INTERFACE ${EOS_CXX_COMPILE_FEATURES}) +target_compile_features(eos INTERFACE cxx_std_17) # Add header includes: target_include_directories(eos INTERFACE "include")