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:
parent
c9f9b3cd94
commit
a55c70de78
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue