| 3665 | } |
| 3666 | |
| 3667 | cmValue 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 | |
| 3685 | cmValue cmMakefile::GetProperty(std::string const& prop, bool chain) const |
| 3686 | { |
no test coverage detected