gentoo-ebuilds/media-sound/milkytracker/files/milkytracker-1.05.01-cmake4.patch
Andreas Sturmlechner 4d7987f712
media-sound/milkytracker: Fix build w/ cmake-4
Closes: https://bugs.gentoo.org/957762
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-17 15:59:15 +02:00

15 lines
474 B
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -156,11 +156,7 @@
message(STATUS "Enabled MIDI support (WinMM)")
add_subdirectory(src/midi)
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)
+ find_package(SDL2 2.0.5 REQUIRED)
endif()
# Prefer static linkage under OS X for libraries located with find_package()