MCPcopy Create free account
hub / github.com/Kitware/CMake / GetProperty

Method GetProperty

Source/cmTest.cxx:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36cmValue cmTest::GetProperty(std::string const& prop) const
37{
38 cmValue retVal = this->Properties.GetPropertyValue(prop);
39 if (!retVal) {
40 bool const chain =
41 this->Makefile->GetState()->IsPropertyChained(prop, cmProperty::TEST);
42 if (chain) {
43 if (cmValue p = this->Makefile->GetProperty(prop, chain)) {
44 return p;
45 }
46 }
47 return nullptr;
48 }
49 return retVal;
50}
51
52bool cmTest::GetPropertyAsBool(std::string const& prop) const
53{

Callers 1

GetPropertyAsBoolMethod · 0.95

Calls 3

GetPropertyValueMethod · 0.80
IsPropertyChainedMethod · 0.80
GetStateMethod · 0.45

Tested by

no test coverage detected