From ced111c74fdc7e17c68bdc10da87cec88c98e8af Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 9 Nov 2012 19:04:28 +0100 Subject: [PATCH] complain about empty $$TARGET this should be fatal, but so should be a lot of other conditions. Change-Id: I0c2c0bb9590ea1e4d0eae76e29eda34915914217 Reviewed-by: Joerg Bornemann --- qmake/generators/makefile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index ad1d319835..d6e5eb8898 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -437,6 +437,9 @@ MakefileGenerator::init() ProValueMap &v = project->variables(); + if (v["TARGET"].isEmpty()) + warn_msg(WarnLogic, "TARGET is empty"); + chkdir = v["QMAKE_CHK_DIR_EXISTS"].join(' '); chkfile = v["QMAKE_CHK_FILE_EXISTS"].join(' '); if (chkfile.isEmpty()) // Backwards compat with Qt4 specs