Skip to content

Commit

Permalink
🚩 [CXX]: Enable C++20 support for Engine builds
Browse files Browse the repository at this point in the history
  • Loading branch information
HuxyUK committed Nov 18, 2021
1 parent 27d30f3 commit 6177e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/libs/stduuid.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ FetchContent_Declare(
FetchContent_GetProperties(stduuid)
if(NOT stduuid_POPULATED)
set(UUID_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(UUID_USING_CXX20_SPAN ON CACHE BOOL "" FORCE)
message(STATUS "+ CONFIGURING STDUUID....")
list(APPEND CMAKE_MESSAGE_INDENT " ")

Expand Down
2 changes: 1 addition & 1 deletion engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ write_basic_package_version_file(
)

# Compiler requirements for this library,
target_compile_features( ${PROJECT_NAME} PUBLIC cxx_std_17 )
target_compile_features( ${PROJECT_NAME} PUBLIC cxx_std_20 )

# Compilation settings
target_compile_options(
Expand Down

0 comments on commit 6177e74

Please sign in to comment.