File 0001-cmake-install-sdl2-config-.cmake-files.patch of Package sdl2-compat

From 95ac51c0df4abad48127c1c7288d24b6588b8489 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <anonymous.maarten@gmail.com>
Date: Wed, 12 Mar 2025 14:31:06 +0100
Subject: [PATCH] cmake: install sdl2-config*.cmake files

SDL2, built with autotools, installs these.
---
 CMakeLists.txt                  | 2 ++
 cmake/sdl2-config-version.cmake | 3 +++
 cmake/sdl2-config.cmake         | 3 +++
 3 files changed, 8 insertions(+)
 create mode 100644 cmake/sdl2-config-version.cmake
 create mode 100644 cmake/sdl2-config.cmake

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e6119f..9ae4072 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -539,6 +539,8 @@ if(SDL2COMPAT_INSTALL)
   )
   install(
     FILES
+      cmake/sdl2-config.cmake
+      cmake/sdl2-config-version.cmake
       ${CMAKE_CURRENT_BINARY_DIR}/SDL2Config.cmake
       ${CMAKE_CURRENT_BINARY_DIR}/SDL2ConfigVersion.cmake
     DESTINATION "${SDL2COMPAT_INSTALL_CMAKEDIR}"
diff --git a/cmake/sdl2-config-version.cmake b/cmake/sdl2-config-version.cmake
new file mode 100644
index 0000000..3795a7d
--- /dev/null
+++ b/cmake/sdl2-config-version.cmake
@@ -0,0 +1,3 @@
+# Compatibility for SDL2 built with autotools
+
+include("${CMAKE_CURRENT_LIST_DIR}/SDL2ConfigVersion.cmake")
diff --git a/cmake/sdl2-config.cmake b/cmake/sdl2-config.cmake
new file mode 100644
index 0000000..56d0ad0
--- /dev/null
+++ b/cmake/sdl2-config.cmake
@@ -0,0 +1,3 @@
+# Compatibility for SDL2 built with autotools
+
+include("${CMAKE_CURRENT_LIST_DIR}/SDL2Config.cmake")
-- 
2.48.1

openSUSE Build Service is sponsored by