aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/module-providers/Qt/setup-qt.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/module-providers/Qt/setup-qt.js')
-rw-r--r--share/qbs/module-providers/Qt/setup-qt.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/qbs/module-providers/Qt/setup-qt.js b/share/qbs/module-providers/Qt/setup-qt.js
index 5cf1bcb44..c23d51d1b 100644
--- a/share/qbs/module-providers/Qt/setup-qt.js
+++ b/share/qbs/module-providers/Qt/setup-qt.js
@@ -268,8 +268,10 @@ function getQtProperties(qmakeFilePath, qbs) {
(pathQueryValue(queryResult, "QT_INSTALL_DATA"), "mkspecs");
}
- if (Utilities.versionCompare(qtProps.qtVersion, "6") >= 0)
- qtProps.libExecPath = pathQueryValue(queryResult, "QT_INSTALL_LIBEXECS");
+ if (Utilities.versionCompare(qtProps.qtVersion, "6") >= 0) {
+ qtProps.libExecPath = pathQueryValue(queryResult, "QT_HOST_LIBEXECS")
+ || pathQueryValue(queryResult, "QT_INSTALL_LIBEXECS");
+ }
if (!File.exists(qtProps.mkspecBasePath))
throw "Cannot extract the mkspecs directory.";