dep: Try extraframework before cmake (fixes #6113)

pull/6328/head
Daniel Mensinger 5 years ago committed by Jussi Pakkanen
parent 5da1a6e586
commit 38d3fbca94
  1. 4
      mesonbuild/dependencies/base.py

@ -2294,13 +2294,15 @@ def _build_external_dependency_list(name, env: Environment, kwargs: Dict[str, An
# Otherwise, just use the pkgconfig and cmake dependency detector
if 'auto' == kwargs.get('method', 'auto'):
candidates.append(functools.partial(PkgConfigDependency, name, env, kwargs))
candidates.append(functools.partial(CMakeDependency, name, env, kwargs))
# On OSX, also try framework dependency detector
if mesonlib.is_osx():
candidates.append(functools.partial(ExtraFrameworkDependency, name,
False, None, env, None, kwargs))
# Only use CMake as a last resort, since it might not work 100% (see #6113)
candidates.append(functools.partial(CMakeDependency, name, env, kwargs))
return candidates

Loading…
Cancel
Save