From 6caf58c0f05a24deddab95a33fb09f1df57a0e0d Mon Sep 17 00:00:00 2001 From: Mathias Hasselmann <mathias@openismus.com> Date: Thu, 16 Aug 2012 11:10:30 +0200 Subject: [PATCH] autotools: Skip empty parts in target lists AFAIR this was about automake variables declared like this: bin_PROGRAMS = \ foo \ bar Change-Id: Ic48b782cc65ca3489f4b9f7ea439ff3e3531e36a Reviewed-by: hjk <qthjk@ovi.com> --- src/plugins/autotoolsprojectmanager/makefileparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/autotoolsprojectmanager/makefileparser.cpp b/src/plugins/autotoolsprojectmanager/makefileparser.cpp index a1fea7247f9..33d330139f0 100644 --- a/src/plugins/autotoolsprojectmanager/makefileparser.cpp +++ b/src/plugins/autotoolsprojectmanager/makefileparser.cpp @@ -360,7 +360,7 @@ QStringList MakefileParser::targetValues(bool *hasVariables) // Get all values of a line separated by spaces. // Values representing a variable like $(value) get // removed currently. - QStringList lineValues = m_line.split(QLatin1Char(' ')); + QStringList lineValues = m_line.split(QLatin1Char(' '), QString::SkipEmptyParts); QStringList::iterator it = lineValues.begin(); while (it != lineValues.end()) { if ((*it).startsWith(QLatin1String("$("))) { -- GitLab