BUG: Clarified confusing error message.

This commit is contained in:
Brad King 2006-03-14 09:37:50 -05:00
parent 1b6912f18b
commit 6018c27993
1 changed files with 5 additions and 1 deletions

View File

@ -757,7 +757,11 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target,
}
else
{
cmSystemTools::Error("Attempt to add link libraries to non-existant target: ", target, " for lib ", lib);
cmOStringStream e;
e << "Attempt to add link library \""
<< lib << "\" to target \""
<< target << "\" which is not built by this project.";
cmSystemTools::Error(e.str().c_str());
}
}