gentoo-ebuilds/app-text/sword/files/sword-1.9.0-cmake4.patch
Nicolas PARLANT d05b4cbfd7
app-text/sword: bump cmake_min to avoid QA-notice
QA-notice is a false positive because this CMakeLists.txt for Android
bindings is never used.
Amend the patch in tree anyway to avoid the workaround.

Closes: https://bugs.gentoo.org/957415
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/42487
Closes: https://github.com/gentoo/gentoo/pull/42487
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-06 15:36:23 +01:00

28 lines
1 KiB
Diff

bump CMake minimum version for CMake 4
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c23f7fa..53104f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,8 +11,8 @@
# of their own GPLv2 license and all copyright is transferred to them for
# all posterity and eternity, wherever such transfer is possible. Where it is
# not, then this file is released under the GPLv2 by myself.
+CMAKE_MINIMUM_REQUIRED(VERSION 3.10.0)
PROJECT(libsword CXX C)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
SET(SWORD_VERSION 1.9.0)
# Make sure it's an out-of-stream build
diff --git a/bindings/Android/SWORD/app/src/main/cpp/CMakeLists.txt b/bindings/Android/SWORD/app/src/main/cpp/CMakeLists.txt
index 41439c5..26d04a8 100644
--- a/bindings/Android/SWORD/app/src/main/cpp/CMakeLists.txt
+++ b/bindings/Android/SWORD/app/src/main/cpp/CMakeLists.txt
@@ -3,7 +3,7 @@
# Sets the minimum version of CMake required to build the native library.
-cmake_minimum_required(VERSION 3.4.1)
+cmake_minimum_required(VERSION 3.10.0)
SET(CMAKE_C_FLAGS "-DBIBLESYNC ${CMAKE_C_FLAGS}")