forked from qt-creator/qt-creator
CMakePM: Use FilePath::path() instead of toString()
Amends 412eeefafa
Change-Id: I82fa1eadd61a4acc2ab25499ef16dd40ef284942
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -37,7 +37,7 @@ static void updateCMakePathsFromQMake(QStringList &initialCMakeArguments)
|
||||
return;
|
||||
|
||||
// ~Qt/6.x/platform/bin/qmake -> ~Qt/6.x/platform
|
||||
const QByteArray qmakePrefixPath = qmakeFilePath.parentDir().parentDir().toString().toUtf8();
|
||||
const QByteArray qmakePrefixPath = qmakeFilePath.parentDir().parentDir().path().toUtf8();
|
||||
const QByteArrayList cmakePathsVariables = {"CMAKE_PREFIX_PATH", "CMAKE_FIND_ROOT_PATH"};
|
||||
|
||||
for (const QByteArray &var : cmakePathsVariables) {
|
||||
|
Reference in New Issue
Block a user