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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy