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 | |
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')
-rw-r--r-- | Source/cmIncludeDirectoryCommand.cxx | 5 | ||||
-rw-r--r-- | Source/cmLinkLibrariesCommand.cxx | 5 | ||||
-rw-r--r-- | Source/cmTargetLinkLibrariesCommand.cxx | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx index 48bede4..0e43736 100644 --- a/Source/cmIncludeDirectoryCommand.cxx +++ b/Source/cmIncludeDirectoryCommand.cxx @@ -35,6 +35,11 @@ bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& args for(; 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; + } m_Makefile->AddIncludeDirectory((*i).c_str(), before); } return true; 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; 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; |