summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-07-10 20:20:24 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-07-10 20:20:24 (GMT)
commit87331468e9e3737d96a98f2f1c2d71cd27d391f3 (patch)
tree41f492466f947aed2b8b48603c31e8a69ac49003 /Source/cmMakefile.cxx
parent726f4fc52425fd790d2ab96f28f18b4b7c4f3750 (diff)
downloadCMake-87331468e9e3737d96a98f2f1c2d71cd27d391f3.zip
CMake-87331468e9e3737d96a98f2f1c2d71cd27d391f3.tar.gz
CMake-87331468e9e3737d96a98f2f1c2d71cd27d391f3.tar.bz2
Better error checking.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 773000c..a0bb617 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -494,6 +494,10 @@ void cmMakefile::AddLinkLibraryForTarget(const char *target,
push_back(
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)