diff options
author | Matt Scheirer | 2020-04-19 12:02:57 -0400 |
---|---|---|
committer | Matt Scheirer | 2020-04-19 12:05:20 -0400 |
commit | 4472b66edd323318bed89f2b87c8d8320c63a92f (patch) | |
tree | 0a4bb5d49abfdfe56f4f3e5aa999b0c584a15428 /sdl2-cmake.patch | |
parent | f4cfabe580abd7c35f7c4a094ed99abc5d365105 (diff) | |
download | aur-4472b66edd323318bed89f2b87c8d8320c63a92f.tar.gz |
Patch broken sdl2 configure
Diffstat (limited to 'sdl2-cmake.patch')
-rw-r--r-- | sdl2-cmake.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sdl2-cmake.patch b/sdl2-cmake.patch new file mode 100644 index 000000000000..940b201b4cee --- /dev/null +++ b/sdl2-cmake.patch @@ -0,0 +1,26 @@ +diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt +index 3c844d1e7..6f60c1d2e 100644 +--- a/code/CMakeLists.txt ++++ b/code/CMakeLists.txt +@@ -90,6 +90,8 @@ if(BuildSPEngine OR BuildJK2SPEngine) + ) + else() + find_package(SDL2 REQUIRED CONFIG) ++ get_target_property(SDL2_INCLUDE_DIRS SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES) ++ get_target_property(SDL2_LIBRARIES SDL2::SDL2 IMPORTED_LOCATION_NOCONFIG) + set(SPEngineIncludeDirectories ${SPEngineIncludeDirectories} ${SDL2_INCLUDE_DIRS}) + set(SPEngineLibraries ${SPEngineLibraries} ${SDL2_LIBRARIES}) + endif() +diff --git a/codemp/CMakeLists.txt b/codemp/CMakeLists.txt +index a55ddf789..be3765cd2 100644 +--- a/codemp/CMakeLists.txt ++++ b/codemp/CMakeLists.txt +@@ -397,6 +397,8 @@ if(BuildMPEngine) + ) + else() + find_package(SDL2 REQUIRED CONFIG) ++ get_target_property(SDL2_INCLUDE_DIRS SDL2::SDL2 INTERFACE_INCLUDE_DIRECTORIES) ++ get_target_property(SDL2_LIBRARIES SDL2::SDL2 IMPORTED_LOCATION_NOCONFIG) + set(MPEngineIncludeDirectories ${MPEngineIncludeDirectories} ${SDL2_INCLUDE_DIRS}) + set(MPEngineLibraries ${MPEngineLibraries} ${SDL2_LIBRARIES}) + endif() |