CppTools: Exclude compiler option from conversion to native path

...otherwise e.g. MSVC's "/I" option will be converted to "\I".

Change-Id: Ia01519ee5c942d0f3cdd32c4302055d0e58fb865
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Nikolai Kosjar
2016-10-17 13:14:07 +02:00
parent 3394cc7bfe
commit f31735142c

View File

@@ -127,10 +127,11 @@ void CompilerOptionsBuilder::addHeaderPathOptions(bool addAsNativePath)
break;
}
QString path = prefix + headerPath.path;
path = addAsNativePath ? QDir::toNativeSeparators(path) : path;
const QString path = addAsNativePath
? QDir::toNativeSeparators(headerPath.path)
: headerPath.path;
result.append(path);
result.append(prefix + path);
}
m_options.append(result);