Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qmake
diff options
context:
space:
mode:
Diffstat (limited to 'qmake')
-rw-r--r--qmake/pkgconfig.pri7
1 files changed, 6 insertions, 1 deletions
diff --git a/qmake/pkgconfig.pri b/qmake/pkgconfig.pri
index b435a8bfe..7b118bab9 100644
--- a/qmake/pkgconfig.pri
+++ b/qmake/pkgconfig.pri
@@ -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)
#