summaryrefslogtreecommitdiffstats
path: root/Source/cmIncludeDirectoryCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-10-28 19:40:24 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-10-28 19:40:24 (GMT)
commit692f18538b24202df55d154f1ba4134349b971e6 (patch)
tree42d2228f57b90a1a3fb255c442f37a64d84ba805 /Source/cmIncludeDirectoryCommand.cxx
parent4de0a518fd8fb7ef4b6940d5514586427197d4fd (diff)
downloadCMake-692f18538b24202df55d154f1ba4134349b971e6.zip
CMake-692f18538b24202df55d154f1ba4134349b971e6.tar.gz
CMake-692f18538b24202df55d154f1ba4134349b971e6.tar.bz2
ENH: add a check for empty include directories
Diffstat (limited to 'Source/cmIncludeDirectoryCommand.cxx')
-rw-r--r--Source/cmIncludeDirectoryCommand.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmIncludeDirectoryCommand.cxx b/Source/cmIncludeDirectoryCommand.cxx
index 48bede4..63fc08c 100644
--- a/Source/cmIncludeDirectoryCommand.cxx
+++ b/Source/cmIncludeDirectoryCommand.cxx
@@ -35,6 +35,10 @@ bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& args
for(; i != args.end(); ++i)
{
+ if(i->size() == 0)
+ {
+ cmSystemTools::Error("Empty Include Directory Passed into INCLUDE_DIRECTORIES command.");
+ }
m_Makefile->AddIncludeDirectory((*i).c_str(), before);
}
return true;