CMakePM: Use FilePath::path() instead of toString()

Amends 412eeefafa

Change-Id: I82fa1eadd61a4acc2ab25499ef16dd40ef284942
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Cristian Adam
2024-07-10 13:44:38 +02:00
parent b8534db8dd
commit e451f42fc7

View File

@@ -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) {