Ports: Update Another-World's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 19:21:26 +04:30 committed by Ali Mohammad Pur
parent 3a879faba6
commit 1dc03216ab
Notes: sideshowbarker 2024-07-17 10:52:50 +09:00
3 changed files with 38 additions and 15 deletions

View file

@ -0,0 +1,29 @@
From a85ea6751a9628b9a6ff3caede0a1365490d3cec Mon Sep 17 00:00:00 2001
From: Pavel Safar <safar.pavel@gmail.com>
Date: Mon, 7 Jun 2021 14:26:26 +0200
Subject: [PATCH] Skip using find_package() for SDL2
We pass the include directory via cmake flags, so we can just use that
and link against sdl2 normally.
---
CMakeLists.txt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 38f6ba8..d0d8463 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,8 +24,7 @@ add_executable(raw
src/vm.cpp
)
-find_package(SDL2 REQUIRED)
-include_directories(${SDL2_INCLUDE_DIRS})
-target_link_libraries(raw ${SDL2_LIBRARIES})
+include_directories(${SDL2_INCLUDE_DIR})
+target_link_libraries(raw SDL2)
target_link_libraries(raw z)
--
2.36.1

View file

@ -0,0 +1,9 @@
# Patches for Another-World on SerenityOS
## `0001-Skip-using-find_package-for-SDL2.patch`
Skip using find_package() for SDL2
We pass the include directory via cmake flags, so we can just use that
and link against sdl2 normally.

View file

@ -1,15 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 38f6ba8..d56ca64 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,8 +24,7 @@ add_executable(raw
src/vm.cpp
)
-find_package(SDL2 REQUIRED)
-include_directories(${SDL2_INCLUDE_DIRS})
-target_link_libraries(raw ${SDL2_LIBRARIES})
+include_directories(${SDL2_INCLUDE_DIR})
+target_link_libraries(raw SDL2)
target_link_libraries(raw z)