forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -360,7 +360,7 @@ QStringList MakefileParser::targetValues(bool *hasVariables)
|
|||||||
// Get all values of a line separated by spaces.
|
// Get all values of a line separated by spaces.
|
||||||
// Values representing a variable like $(value) get
|
// Values representing a variable like $(value) get
|
||||||
// removed currently.
|
// removed currently.
|
||||||
QStringList lineValues = m_line.split(QLatin1Char(' '));
|
QStringList lineValues = m_line.split(QLatin1Char(' '), QString::SkipEmptyParts);
|
||||||
QStringList::iterator it = lineValues.begin();
|
QStringList::iterator it = lineValues.begin();
|
||||||
while (it != lineValues.end()) {
|
while (it != lineValues.end()) {
|
||||||
if ((*it).startsWith(QLatin1String("$("))) {
|
if ((*it).startsWith(QLatin1String("$("))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user