forked from qt-creator/qt-creator
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:
@@ -127,10 +127,11 @@ void CompilerOptionsBuilder::addHeaderPathOptions(bool addAsNativePath)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString path = prefix + headerPath.path;
|
const QString path = addAsNativePath
|
||||||
path = addAsNativePath ? QDir::toNativeSeparators(path) : path;
|
? QDir::toNativeSeparators(headerPath.path)
|
||||||
|
: headerPath.path;
|
||||||
|
|
||||||
result.append(path);
|
result.append(prefix + path);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_options.append(result);
|
m_options.append(result);
|
||||||
|
Reference in New Issue
Block a user