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

Method GetProperty

Source/cmMakefile.cxx:3667–3683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3665}
3666
3667cmValue cmMakefile::GetProperty(std::string const& prop) const
3668{
3669 // Check for computed properties.
3670 static std::string output;
3671 if (prop == "TESTS"_s) {
3672 std::vector<std::string> keys;
3673 // get list of keys
3674 auto const* t = this;
3675 std::transform(
3676 t->Tests.begin(), t->Tests.end(), std::back_inserter(keys),
3677 [](decltype(t->Tests)::value_type const& pair) { return pair.first; });
3678 output = cmList::to_string(keys);
3679 return cmValue(output);
3680 }
3681
3682 return this->StateSnapshot.GetDirectory().GetProperty(prop);
3683}
3684
3685cmValue cmMakefile::GetProperty(std::string const& prop, bool chain) const
3686{

Callers 6

ParseDefineFlagMethod · 0.95
GetPropertyAsBoolMethod · 0.95
cmMakefileClass · 0.95
InitializeFromParentMethod · 0.45

Calls 6

transformFunction · 0.85
to_stringFunction · 0.85
cmValueClass · 0.70
beginMethod · 0.45
endMethod · 0.45
GetDirectoryMethod · 0.45

Tested by

no test coverage detected