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/cmLinkLibrariesCommand.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/cmLinkLibrariesCommand.cxx')
-rw-r--r-- | Source/cmLinkLibrariesCommand.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmLinkLibrariesCommand.cxx b/Source/cmLinkLibrariesCommand.cxx index d45f246..c2eade7 100644 --- a/Source/cmLinkLibrariesCommand.cxx +++ b/Source/cmLinkLibrariesCommand.cxx @@ -28,6 +28,11 @@ bool cmLinkLibrariesCommand::InitialPass(std::vector<std::string> const& args) for(std::vector<std::string>::const_iterator i = args.begin(); i != args.end(); ++i) { + if ( *i == "NOTFOUND" ) + { + this->SetError("CMake attempted to put directory that was not found to the list of include directories."); + return false; + } if (*i == "debug") { ++i; |