Qt4ProjectManager: Omit .pro file warning if that is requested.

Normally, we print a debug message about INSTALLS += var
with var.files being empty.
Don't do this if var.CONFIG contains "no_check_exist".
This commit is contained in:
Christian Kandeler
2010-11-08 17:29:03 +01:00
parent 92a6255c23
commit 44f1d14c13

View File

@@ -2014,8 +2014,11 @@ void Qt4ProFileNode::setupInstallsList(const ProFileReader *reader)
m_installsList.targetPath = itemPath;
} else {
if (itemFiles.isEmpty()) {
qDebug("Ignoring INSTALLS item '%s', because it has no files.",
qPrintable(item));
if (!reader->values(item + QLatin1String(".CONFIG"))
.contains(QLatin1String("no_check_exist"))) {
qDebug("Ignoring INSTALLS item '%s', because it has no files.",
qPrintable(item));
}
continue;
}
m_installsList.items << InstallsItem(itemPath, itemFiles);