$NetBSD: patch-CMakeLists.txt,v 1.2 2025/08/19 07:28:18 wiz Exp $ This code actually uses C++11 features. Fix build with cmake 4. https://github.com/milkytracker/MilkyTracker/issues/393 --- CMakeLists.txt.orig 2023-07-05 08:03:59.000000000 +0000 +++ CMakeLists.txt @@ -22,8 +22,8 @@ cmake_minimum_required(VERSION 3.10) project(MilkyTracker) -# Set C++ standard to C++98 -set(CMAKE_CXX_STANDARD 98) +# Set C++ standard to C++11 +set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_EXTENSIONS OFF) # Enable IDE solution folders @@ -169,7 +169,6 @@ elseif(WIN32) else() # Workaround for SDL bug #3295, which occurs in SDL2 <2.0.5 # https://bugzilla.libsdl.org/show_bug.cgi?id=3295 - cmake_policy(SET CMP0004 OLD) find_package(SDL2 REQUIRED) endif()