From 692f18538b24202df55d154f1ba4134349b971e6 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 28 Oct 2004 15:40:24 -0400 Subject: ENH: add a check for empty include directories --- Source/cmIncludeDirectoryCommand.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 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; -- cgit v0.12