From 6177e74989963bfe3da554f94d8b76c79cd1d331 Mon Sep 17 00:00:00 2001 From: HuxyUK Date: Thu, 18 Nov 2021 23:29:48 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A9=20[CXX]:=20Enable=20C++20=20suppor?= =?UTF-8?q?t=20for=20Engine=20builds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/libs/stduuid.cmake | 1 + engine/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/libs/stduuid.cmake b/cmake/libs/stduuid.cmake index f318624..fb82445 100644 --- a/cmake/libs/stduuid.cmake +++ b/cmake/libs/stduuid.cmake @@ -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 " ") diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index 12b207d..e51dad8 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -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(