Commit bf732ec4 authored by Brad King's avatar Brad King
Browse files

BUG: Fix include_directories command to produce an immediately whether or not...

BUG: Fix include_directories command to produce an immediately whether or not 2.4 compatibility is enabled.  CMake 2.4 already produced an error, just not immediately.
parent 959bd61e
......@@ -50,17 +50,8 @@ bool cmIncludeDirectoryCommand
}
if(i->size() == 0)
{
const char* errorMessage
= "Empty Include Directory Passed into INCLUDE_DIRECTORIES command.";
if(this->Makefile->NeedBackwardsCompatibility(2,4))
{
cmSystemTools::Error(errorMessage);
}
else
{
this->SetError(errorMessage);
return false;
}
this->SetError("given empty-string as include directory.");
return false;
}
this->AddDirectory(i->c_str(),before,system);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment