Commit a55c70de authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmTarget: Remove support for <CONFIG>_LOCATION property.

It is not documented, is very old, is compatibility code,
is non-uniform and is not needed.
parent c9f9b3cd
......@@ -2722,25 +2722,6 @@ const char *cmTarget::GetProperty(const char* prop,
this->GetLocation(configName.c_str()),
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)
{
......
Supports Markdown
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