File cmake-googletest.patch of Package zimg

--- a/configure.ac	2025-07-13 08:18:13.589282413 +0200
+++ b/configure.ac	2025-07-13 08:17:58.608970457 +0200
@@ -46,7 +46,7 @@
 
         AC_CHECK_PROG([CMAKE], [cmake], [cmake])
         AS_MKDIR_P([test/extra/googletest/build])
-        AS_IF([(cd "test/extra/googletest/build" && $CMAKE -Dgtest_disable_pthreads=ON "$ac_abs_confdir/test/extra/googletest")],
+        AS_IF([(cd "test/extra/googletest/build" && $CMAKE -Dgtest_disable_pthreads=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5 "$ac_abs_confdir/test/extra/googletest")],
               [], [AC_MSG_ERROR([CMake error])])
       ])
 
openSUSE Build Service is sponsored by