Skip to content

Commit

Permalink
Remove old list of EOS_CXX_COMPILE_FEATURES and replace with cxx_std_17
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikhuber committed Dec 14, 2024
1 parent 0480312 commit f1360a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit f1360a2

Please sign in to comment.