diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-30 19:34:40 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-30 19:34:40 (GMT) |
commit | 6b228ff924ee2dc7964b4885f38b0d3f5b4fc7d3 (patch) | |
tree | 0aa98465afc107aabd6407f6b1d04b60691cd2b5 /Source/cmTargetLinkLibrariesCommand.cxx | |
parent | c4bf10377264fd96fc0b11342b58dc7607e050ad (diff) | |
download | CMake-6b228ff924ee2dc7964b4885f38b0d3f5b4fc7d3.zip CMake-6b228ff924ee2dc7964b4885f38b0d3f5b4fc7d3.tar.gz CMake-6b228ff924ee2dc7964b4885f38b0d3f5b4fc7d3.tar.bz2 |
Add some error checking for missing include directories and link libraries
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.cxx')
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.cxx b/Source/cmTargetLinkLibrariesCommand.cxx index 70ba944..ab3663a 100644 --- a/Source/cmTargetLinkLibrariesCommand.cxx +++ b/Source/cmTargetLinkLibrariesCommand.cxx @@ -36,6 +36,12 @@ bool cmTargetLinkLibrariesCommand::InitialPass(std::vector<std::string> const& a for(++i; i != args.end(); ++i) { + if ( *i == "NOTFOUND" ) + { + this->SetError("CMake attempted to put library that was not found to the list of libraries."); + return false; + } + if (*i == "debug") { ++i; |