From 6dfc41f85099779e8c3b19ec099c2e160079000a Mon Sep 17 00:00:00 2001 From: Freddie <69014593+FrederoxDev@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:31:58 +0100 Subject: [PATCH] Add c++23 as a required property of the runtime cmakelists.txt --- AmethystRuntime/CMakeLists.txt | 3 +++ CMakeLists.txt | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AmethystRuntime/CMakeLists.txt b/AmethystRuntime/CMakeLists.txt index 8a36f854..cdcec21a 100644 --- a/AmethystRuntime/CMakeLists.txt +++ b/AmethystRuntime/CMakeLists.txt @@ -6,6 +6,9 @@ set(MOD_TARGET_VERSION_MAJOR 1) set(MOD_TARGET_VERSION_MINOR 21) set(MOD_TARGET_VERSION_PATCH 3) +set(CMAKE_CXX_STANDARD 23) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + # Amethyst Minecraft Folder if (CI_CD_BUILD) configure_file(mod.json.in "${CMAKE_SOURCE_DIR}/dist/AmethystRuntime@${MOD_VERSION}/mod.json" @ONLY) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a549e25..98964445 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.12) project(Amethyst CXX ASM_NASM) include(FetchContent) -# Compiler Options set(CMAKE_CXX_STANDARD 23) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +# Compiler Options set_property(GLOBAL PROPERTY USE_FOLDERS ON) set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo" CACHE STRING "Build configurations" FORCE) set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: RelWithDebInfo" FORCE)