qmake/pkgconfig.pri: Update to allow building with Qt4

This commit is contained in:
Chris Knadle 2019-01-26 19:34:40 +00:00
parent 427c7464e6
commit 4e024a2b06

View File

@ -6,7 +6,12 @@
# 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()
# If building with Qt4, pkg-config is called instead
isEqual(QT_MAJOR_VERSION, 5) {
PKG_CONFIG = $$pkgConfigExecutable()
} else {
PKG_CONFIG = "pkg-config"
}
# must_pkgconfig(pkg)
#