From 87331468e9e3737d96a98f2f1c2d71cd27d391f3 Mon Sep 17 00:00:00 2001 From: Berk Geveci Date: Tue, 10 Jul 2001 16:20:24 -0400 Subject: [PATCH] Better error checking. --- Source/cmMakefile.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 773000cef..a0bb617c0 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -494,6 +494,10 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target, push_back( std::pair(lib,llt)); } + else + { + cmSystemTools::Error("Attempt to add link libraries to non-existant target: ", target, " for lib ", lib); + } } void cmMakefile::AddLinkLibrary(const char* lib)