mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 19:08:07 +08:00
cmMakefile::GetProperty: return cmProp
This commit is contained in:
@@ -39,7 +39,9 @@ const char* cmTest::GetProperty(const std::string& prop) const
|
||||
const bool chain =
|
||||
this->Makefile->GetState()->IsPropertyChained(prop, cmProperty::TEST);
|
||||
if (chain) {
|
||||
return this->Makefile->GetProperty(prop, chain);
|
||||
if (cmProp p = this->Makefile->GetProperty(prop, chain)) {
|
||||
return p->c_str();
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user