Print pkg-config error when framework dep isn't found

Without this, macOS users can't figure out why a particular dependency
wasn't found because the pkg-config error message gets masked by the
fresh and useless DependencyException.
pull/1312/head
Nirbheek Chauhan 8 years ago
parent e441a74282
commit 2d31851d3b
  1. 4
      mesonbuild/dependencies.py

@ -1443,7 +1443,9 @@ def find_external_dependency(name, environment, kwargs):
if mesonlib.is_osx():
fwdep = ExtraFrameworkDependency(name, required)
if required and not fwdep.found():
raise DependencyException('Dependency "%s" not found' % name)
m = 'Dependency {!r} not found, tried Extra Frameworks ' \
'and Pkg-Config:\n\n' + str(pkg_exc)
raise DependencyException(m.format(name))
return fwdep
if pkg_exc is not None:
raise pkg_exc

Loading…
Cancel
Save