summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeDirectoryCommand.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-30 19:34:40 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-30 19:34:40 (GMT)
commit6b228ff924ee2dc7964b4885f38b0d3f5b4fc7d3 (patch)
tree0aa98465afc107aabd6407f6b1d04b60691cd2b5 /Source/cmIncludeDirectoryCommand.cxx
parentc4bf10377264fd96fc0b11342b58dc7607e050ad (diff)
downloadCMake-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/cmIncludeDirectoryCommand.cxx')
-rw-r--r--Source/cmIncludeDirectoryCommand.cxx5
1 files changed, 5 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;