Commit b6829fed authored by Kai Koehne's avatar Kai Koehne
Browse files

DebuggingHelpers: Properly escape paths with spaces in it

This is important especially on the Mac , where the default QtCreator
directory contains a PATH in it.
parent c78da91b
......@@ -185,8 +185,8 @@ bool DebuggingHelperBuildTask::buildDebuggingHelper(QFutureInterface<void> &futu
return false;
QStringList qmakeArgs;
qmakeArgs << QLatin1String("INCLUDEPATH+=") + qmlDebuggingDirectory + "/include";
qmakeArgs << QLatin1String("LIBS+=-L") + qmlDebuggingDirectory;
qmakeArgs << QLatin1String("INCLUDEPATH+=\"\\\"") + qmlDebuggingDirectory + "include\\\"\"";
qmakeArgs << QLatin1String("LIBS+=-L\"\\\"") + qmlDebuggingDirectory + QLatin1String("\\\"\"");
if (!QmlObserverTool::build(qmlObserverDirectory, m_makeCommand, m_qmakeCommand, m_mkspec,
m_environment, m_target, qmakeArgs, output, &m_errorMessage))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment