diff --git a/CMakeLists.txt b/CMakeLists.txt index 6547dd71e..3eaffc27a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,7 +93,7 @@ target_include_directories( $ ) -target_compile_features(EnTT INTERFACE cxx_std_17) +target_compile_features(EnTT INTERFACE cxx_std_20) if(ENTT_HAS_LIBCPP) target_compile_options(EnTT BEFORE INTERFACE -stdlib=libc++) diff --git a/README.md b/README.md index 99432ec9b..2c8fff2bf 100644 --- a/README.md +++ b/README.md @@ -217,7 +217,7 @@ the include paths. ## Requirements To be able to use `EnTT`, users must provide a full-featured compiler that -supports at least C++17.
+supports at least C++20.
The requirements below are mandatory to compile the tests and to extract the documentation: diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 78533f05d..0df9aaf3b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -21,16 +21,16 @@ else() add_library(GTest::Main ALIAS gtest_main) - target_compile_features(gtest PUBLIC cxx_std_17) + target_compile_features(gtest PUBLIC cxx_std_20) set_target_properties(gtest PROPERTIES CXX_CLANG_TIDY "") - target_compile_features(gtest_main PUBLIC cxx_std_17) + target_compile_features(gtest_main PUBLIC cxx_std_20) set_target_properties(gtest_main PROPERTIES CXX_CLANG_TIDY "") - target_compile_features(gmock PUBLIC cxx_std_17) + target_compile_features(gmock PUBLIC cxx_std_20) set_target_properties(gmock PROPERTIES CXX_CLANG_TIDY "") - target_compile_features(gmock_main PUBLIC cxx_std_17) + target_compile_features(gmock_main PUBLIC cxx_std_20) set_target_properties(gmock_main PROPERTIES CXX_CLANG_TIDY "") endif()