From d9e943b9934d06733d9e03e14b72c2f5e58bde82 Mon Sep 17 00:00:00 2001 From: William Scaff Date: Mon, 5 May 2025 18:59:32 -0300 Subject: [PATCH] Fix Cmake compatibility issue The jpeg recipe doesn't compile anymore because CMake dropped compatibility with versions below 3.5. "Calls to cmake_minimum_required() or cmake_policy() that set the policy version to an older value now issue an error." Source: https://cmake.org/cmake/help/latest/release/4.0.html --- pythonforandroid/recipes/jpeg/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pythonforandroid/recipes/jpeg/__init__.py b/pythonforandroid/recipes/jpeg/__init__.py index 436dc129ba..33a9ba44da 100644 --- a/pythonforandroid/recipes/jpeg/__init__.py +++ b/pythonforandroid/recipes/jpeg/__init__.py @@ -48,6 +48,9 @@ def build_arch(self, arch): # Force disable shared, with the static ones is enough '-DENABLE_SHARED=0', '-DENABLE_STATIC=1', + + # Fix cmake compatibility issue + '-DCMAKE_POLICY_VERSION_MINIMUM=3.5', _env=env) shprint(sh.make, _env=env)