Better error message when pkg-config not found

This commit is contained in:
Kovid Goyal 2015-09-25 22:55:13 +05:30
parent 22be8fd68c
commit 4ef778fff8

View File

@ -38,6 +38,8 @@ QMAKE = os.environ.get('QMAKE', QMAKE)
PKGCONFIG = find_executable('pkg-config') PKGCONFIG = find_executable('pkg-config')
PKGCONFIG = os.environ.get('PKG_CONFIG', PKGCONFIG) PKGCONFIG = os.environ.get('PKG_CONFIG', PKGCONFIG)
if islinux and not PKGCONFIG:
raise SystemExit('Failed to find pkg-config on your system. You can use the environment variable PKG_CONFIG to point to the pkg-config executable')
if iswindows: if iswindows:
import win32api import win32api