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)