ENH: some better error reporting and more robust handlign of bad targets

This commit is contained in:
Andy Cedilnik
2005-06-09 09:48:44 -04:00
parent a7fcb07418
commit 2d4b06c8e5
2 changed files with 12 additions and 7 deletions

View File

@@ -864,7 +864,8 @@ cmLocalUnixMakefileGenerator3
// Make sure there is a target.
if(!target || !*target)
{
cmSystemTools::Error("No target for WriteMakeRule!");
cmSystemTools::Error("No target for WriteMakeRule! called with comment: ",
comment);
return;
}