summaryrefslogtreecommitdiff
path: root/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qbsprojectmanager/qbsprojectparser.cpp')
-rw-r--r--src/plugins/qbsprojectmanager/qbsprojectparser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsprojectparser.cpp b/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
index e4fc351edf..af53e1bce8 100644
--- a/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
+++ b/src/plugins/qbsprojectmanager/qbsprojectparser.cpp
@@ -206,8 +206,12 @@ QString QbsProjectParser::libExecDirectory() const
QString QbsProjectParser::pluginsBaseDirectory() const
{
const QString qbsInstallDir = QLatin1String(QBS_INSTALL_DIR);
+
+ // Note: We assume here that Qt Creator and qbs use the same name for their library dir.
+ const QString qbsLibDirName = QLatin1String(IDE_LIBRARY_BASENAME);
+
if (!qbsInstallDir.isEmpty())
- return qbsInstallDir + QLatin1String("/lib/");
+ return qbsInstallDir + QLatin1Char('/') + qbsLibDirName;
if (HostOsInfo::isMacHost())
return QDir::cleanPath(QCoreApplication::applicationDirPath()
+ QLatin1String("/../PlugIns"));