ENH: add a check for empty include directories
This commit is contained in:
parent
4de0a518fd
commit
692f18538b
@ -35,6 +35,10 @@ bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& args
|
|||||||
|
|
||||||
for(; i != args.end(); ++i)
|
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);
|
m_Makefile->AddIncludeDirectory((*i).c_str(), before);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user