cmTarget: Remove support for <CONFIG>_LOCATION property.

It is not documented, is very old, is compatibility code,
is non-uniform and is not needed.
This commit is contained in:
Stephen Kelly 2013-12-30 13:16:22 +01:00
parent c9f9b3cd94
commit a55c70de78
1 changed files with 0 additions and 19 deletions

View File

@ -2722,25 +2722,6 @@ const char *cmTarget::GetProperty(const char* prop,
this->GetLocation(configName.c_str()), this->GetLocation(configName.c_str()),
cmProperty::TARGET); cmProperty::TARGET);
} }
else
{
// Support "<CONFIG>_LOCATION" for compatibility.
int len = static_cast<int>(strlen(prop));
if(len > 9 && strcmp(prop+len-9, "_LOCATION") == 0)
{
std::string configName(prop, len-9);
if(configName != "IMPORTED")
{
if (!this->HandleLocationPropertyPolicy())
{
return 0;
}
this->Properties.SetProperty(prop,
this->GetLocation(configName.c_str()),
cmProperty::TARGET);
}
}
}
} }
if(strcmp(prop,"INCLUDE_DIRECTORIES") == 0) if(strcmp(prop,"INCLUDE_DIRECTORIES") == 0)
{ {