cmTarget: Port <CONFIG>_LOCATION support to updated string APIs
This commit is contained in:
parent
6e466c6f2e
commit
ea17a03be5
|
@ -2673,7 +2673,7 @@ const char *cmTarget::GetProperty(const std::string& prop,
|
|||
// Support "<CONFIG>_LOCATION".
|
||||
if(cmHasLiteralSuffix(prop, "_LOCATION"))
|
||||
{
|
||||
std::string configName(prop, strlen(prop) - 9);
|
||||
std::string configName(prop.c_str(), prop.size() - 9);
|
||||
if(configName != "IMPORTED")
|
||||
{
|
||||
if (!this->HandleLocationPropertyPolicy())
|
||||
|
@ -2681,7 +2681,7 @@ const char *cmTarget::GetProperty(const std::string& prop,
|
|||
return 0;
|
||||
}
|
||||
this->Properties.SetProperty(prop,
|
||||
this->GetLocation(configName.c_str()),
|
||||
this->GetLocation(configName),
|
||||
cmProperty::TARGET);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue