From 4e024a2b06ae831770cdf3e7ddec474b48c3e8a0 Mon Sep 17 00:00:00 2001 From: Chris Knadle Date: Sat, 26 Jan 2019 19:34:40 +0000 Subject: qmake/pkgconfig.pri: Update to allow building with Qt4 --- qmake/pkgconfig.pri | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'qmake') 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) # -- cgit v1.2.3