diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/makefileparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/autotoolsprojectmanager/makefileparser.cpp b/src/plugins/autotoolsprojectmanager/makefileparser.cpp index 0feb64ec49..7ad9f1097a 100644 --- a/src/plugins/autotoolsprojectmanager/makefileparser.cpp +++ b/src/plugins/autotoolsprojectmanager/makefileparser.cpp @@ -154,7 +154,7 @@ MakefileParser::TopTarget MakefileParser::topTarget() const return BuiltSources; if (id == QLatin1String("SUBDIRS") || id == QLatin1String("DIST_SUBDIRS")) return SubDirs; - if (id.endsWith(QLatin1String("_SOURCES"))) + if (id.endsWith("_SOURCES") || id.endsWith("_HEADERS")) return Sources; return Undefined; @@ -174,7 +174,7 @@ void MakefileParser::parseBinPrograms() void MakefileParser::parseSources() { - QTC_ASSERT(m_line.contains(QLatin1String("_SOURCES")), return); + QTC_ASSERT(m_line.contains("_SOURCES") || m_line.contains("_HEADERS"), return); bool hasVariables = false; m_sources.append(targetValues(&hasVariables)); |