Build: Enable C++20

(cherry picked from commit 989f84c5f2)
This commit is contained in:
Shauren
2023-01-01 00:26:53 +01:00
parent 97c977d0fb
commit d0553d499b

View File

@@ -12,14 +12,14 @@
add_library(trinity-compile-option-interface INTERFACE)
# Use -std=c++11 instead of -std=gnu++11
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_EXTENSIONS OFF)
# An interface library to make the target features available to other targets
add_library(trinity-feature-interface INTERFACE)
target_compile_features(trinity-feature-interface
INTERFACE
cxx_std_17)
cxx_std_20)
# An interface library to make the warnings level available to other targets
# This interface taget is set-up through the platform specific script