BUG: Produce error when include directories is invoked with an empty list
This commit is contained in:
parent
48202ef623
commit
440bbf0871
@ -50,8 +50,19 @@ bool cmIncludeDirectoryCommand
|
|||||||
}
|
}
|
||||||
if(i->size() == 0)
|
if(i->size() == 0)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
const char* versionValue =
|
||||||
("Empty Include Directory Passed into INCLUDE_DIRECTORIES command.");
|
this->Makefile->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
|
||||||
|
const char* errorMessage
|
||||||
|
= "Empty Include Directory Passed into INCLUDE_DIRECTORIES command.";
|
||||||
|
if(atof(versionValue) < 2.5)
|
||||||
|
{
|
||||||
|
cmSystemTools::Error(errorMessage);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->SetError(errorMessage);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
std::string unixPath = *i;
|
std::string unixPath = *i;
|
||||||
if (!cmSystemTools::IsOff(unixPath.c_str()))
|
if (!cmSystemTools::IsOff(unixPath.c_str()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user