Skip to content

Commit

Permalink
Add c++23 as a required property of the runtime cmakelists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederoxDev committed Jul 28, 2024
1 parent 221bf3e commit 6dfc41f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions AmethystRuntime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6dfc41f

Please sign in to comment.