ENH: add a check for empty include directories

This commit is contained in:
Bill Hoffman 2004-10-28 15:40:24 -04:00
parent 4de0a518fd
commit 692f18538b
1 changed files with 4 additions and 0 deletions

View File

@ -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;