forked from qt-creator/qt-creator
CMakePM: Fix build library search path with CMake 3.20+
CMake 3.20 has changed the relative path to dependent libraries from current binary directory to main binary directory. See https://gitlab.kitware.com/cmake/cmake/-/issues/22556 Fixes: QTCREATORBUG-26110 Change-Id: I39c1d6b2998ebb079e7017e8d349881752d80354 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -147,6 +147,13 @@ static ReplyFileContents readReplyFile(const FilePath &filePath, QString &errorM
|
||||
result.generator = generator.value("name").toString();
|
||||
result.isMultiConfig = generator.value("multiConfig").toBool();
|
||||
}
|
||||
const QJsonObject version = cmakeObject.value("version").toObject();
|
||||
{
|
||||
int major = version.value("major").toInt();
|
||||
int minor = version.value("minor").toInt();
|
||||
int patch = version.value("patch").toInt();
|
||||
result.cmakeVersion = QVersionNumber(major, minor, patch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user