Skip to content

Commit d9e943b

Browse files
authored
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
1 parent f491c6e commit d9e943b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythonforandroid/recipes/jpeg/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def build_arch(self, arch):
4848
# Force disable shared, with the static ones is enough
4949
'-DENABLE_SHARED=0',
5050
'-DENABLE_STATIC=1',
51+
52+
# Fix cmake compatibility issue
53+
'-DCMAKE_POLICY_VERSION_MINIMUM=3.5',
5154
_env=env)
5255
shprint(sh.make, _env=env)
5356

0 commit comments

Comments
 (0)