build: C++20

This commit is contained in:
skypjack
2025-11-25 11:55:39 +01:00
parent e9b64a21a2
commit c84ff3bcd8
3 changed files with 6 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ target_include_directories(
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
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++)

View File

@@ -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.<br/>
supports at least C++20.<br/>
The requirements below are mandatory to compile the tests and to extract the
documentation:

View File

@@ -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()