SDKtool: Make sure to use '/' as path separator

All internal paths in Qt Creator are using '/' as path separator.
Make sure to normalize paths set via the SDKtool to that convention.

Change-Id: If7ef250d49686a0f60d08516b718eb7c84a059ef
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-01-19 14:21:28 +01:00
parent a67c7d5bf0
commit cc817d508f
4 changed files with 9 additions and 4 deletions

View File

@@ -40,6 +40,8 @@
#include <iostream>
#include <QDir>
// ToolChain file stuff:
const char COUNT[] = "ToolChain.Count";
const char PREFIX[] = "ToolChain.";
@@ -100,7 +102,7 @@ bool AddToolChainOperation::setArguments(const QStringList &args)
if (current == QLatin1String("--path")) {
++i; // skip next;
m_path = next;
m_path = QDir::fromNativeSeparators(next);
continue;
}