diff options
author | Chris Knadle <Chris.Knadle@coredump.us> | 2019-01-26 22:34:40 +0300 |
---|---|---|
committer | Chris Knadle <Chris.Knadle@coredump.us> | 2019-01-26 22:34:40 +0300 |
commit | 4e024a2b06ae831770cdf3e7ddec474b48c3e8a0 (patch) | |
tree | 724dc8e07a8bcbef8f3abe79e67d539bb7a437c2 | |
parent | 427c7464e6021c21b8df512313625d5b1cd878a5 (diff) |
qmake/pkgconfig.pri: Update to allow building with Qt4
-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 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) # |