diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-07-10 20:20:24 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-07-10 20:20:24 (GMT) |
commit | 87331468e9e3737d96a98f2f1c2d71cd27d391f3 (patch) | |
tree | 41f492466f947aed2b8b48603c31e8a69ac49003 /Source/cmMakefile.cxx | |
parent | 726f4fc52425fd790d2ab96f28f18b4b7c4f3750 (diff) | |
download | CMake-87331468e9e3737d96a98f2f1c2d71cd27d391f3.zip CMake-87331468e9e3737d96a98f2f1c2d71cd27d391f3.tar.gz CMake-87331468e9e3737d96a98f2f1c2d71cd27d391f3.tar.bz2 |
Better error checking.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
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) |