Commit fb1360cd authored by Daniel Teske's avatar Daniel Teske
Browse files

Don't parse Makefiles without Command: line

Change-Id: Ied315fda07d2ae8910aca7ce232b01c5cdc36f0f
Task-number: QTCREATORBUG-14291
Reviewed-by: default avatarTobias Hunger <>
parent eba7d8d1
......@@ -92,6 +92,8 @@ QList<BuildInfo *> QmakeProjectImporter::import(const FileName &importPath, bool
// find interesting makefiles
QString makefile = importPath.toString() + QLatin1Char('/') + file;
MakeFileParse parse(makefile);
if (parse.makeFileState() != MakeFileParse::Okay)
QFileInfo qmakeFi = parse.qmakePath().toFileInfo();
FileName canonicalQmakeBinary = FileName::fromString(qmakeFi.canonicalFilePath());
if (canonicalQmakeBinary.isEmpty()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment