diff options
Diffstat (limited to 'qmake/pkgconfig.pri')
-rw-r--r-- | qmake/pkgconfig.pri | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qmake/pkgconfig.pri b/qmake/pkgconfig.pri index ceb8efa71..b435a8bfe 100644 --- a/qmake/pkgconfig.pri +++ b/qmake/pkgconfig.pri @@ -3,6 +3,11 @@ # that can be found in the LICENSE file at the root of the # Mumble source tree or at <https://www.mumble.info/LICENSE>. +# Allow cross-building by making a call to return the pkg-config +# that the user supplied to the build. +# pkgConfigExecutable() is part of Qt5. +PKG_CONFIG = $$pkgConfigExecutable() + # must_pkgconfig(pkg) # # This function checks if the passed-in package @@ -17,7 +22,7 @@ # defineTest(must_pkgconfig) { pkg = $$1 - system(pkg-config --exists $$pkg) { + system($$PKG_CONFIG --exists $$pkg) { PKGCONFIG *= $$pkg export(PKGCONFIG) } else { |