forked from qt-creator/qt-creator
CMake: Improve parsing of unix makefile-based projects
Task-number: QTCREATORBUG-15825 Change-Id: Ifc7bd784a8b9b4b13829859f81ca42829aae383e Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Tobias Hunger
parent
a57e75884e
commit
20f0bd9558
@@ -276,7 +276,7 @@ void CMakeCbpParser::parseBuildTargetOption()
|
||||
const QLatin1String searchSource("SET(CMAKE_RELATIVE_PATH_TOP_SOURCE \"");
|
||||
while (!stream.atEnd()) {
|
||||
const QString lineTopSource = stream.readLine().trimmed();
|
||||
if (lineTopSource.startsWith(searchSource)) {
|
||||
if (lineTopSource.startsWith(searchSource, Qt::CaseInsensitive)) {
|
||||
m_buildTarget.sourceDirectory = lineTopSource.mid(searchSource.size());
|
||||
m_buildTarget.sourceDirectory.chop(2); // cut off ")
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user