Editor: Update to C++23

Track the latest standard instead of being stuck on C++17.
This commit is contained in:
Lioncache
2025-12-01 00:57:45 -05:00
parent fbddb3f7be
commit db7e832f32
3 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.20)
project(pwe_core CXX C)
@@ -20,7 +20,7 @@ file(GLOB_RECURSE source_files
add_library(pwe_core ${source_files})
target_compile_features(pwe_core PRIVATE cxx_std_17)
target_compile_features(pwe_core PRIVATE cxx_std_23)
target_include_directories(pwe_core
PUBLIC

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.20)
# TODO: These should be drive by CI if CI ever becomes a thing for PWE.
set(PWE_APP_NAME "Prime World Editor")
@@ -99,7 +99,7 @@ set_target_properties(pwe_editor PROPERTIES OUTPUT_NAME PrimeWorldEditor DEBUG_P
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_BINARY_DIR}/Info.plist"
MACOSX_BUNDLE_BUNDLE_NAME "PrimeWorldEditor")
target_compile_features(pwe_editor PRIVATE cxx_std_17)
target_compile_features(pwe_editor PRIVATE cxx_std_23)
target_link_libraries(
pwe_editor