Better error checking.

This commit is contained in:
Berk Geveci 2001-07-10 16:20:24 -04:00
parent 726f4fc524
commit 87331468e9
1 changed files with 4 additions and 0 deletions

View File

@ -494,6 +494,10 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target,
push_back( push_back(
std::pair<std::string, cmTarget::LinkLibraryType>(lib,llt)); std::pair<std::string, cmTarget::LinkLibraryType>(lib,llt));
} }
else
{
cmSystemTools::Error("Attempt to add link libraries to non-existant target: ", target, " for lib ", lib);
}
} }
void cmMakefile::AddLinkLibrary(const char* lib) void cmMakefile::AddLinkLibrary(const char* lib)