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

Method GetFeature

Source/cmGeneratorTarget.cxx:725–739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725cmValue cmGeneratorTarget::GetFeature(std::string const& feature,
726 std::string const& config) const
727{
728 if (!config.empty()) {
729 std::string featureConfig =
730 cmStrCat(feature, '_', cmSystemTools::UpperCase(config));
731 if (cmValue value = this->GetProperty(featureConfig)) {
732 return value;
733 }
734 }
735 if (cmValue value = this->GetProperty(feature)) {
736 return value;
737 }
738 return this->LocalGenerator->GetFeature(feature, config);
739}
740
741std::string cmGeneratorTarget::GetLinkerTypeProperty(
742 std::string const& lang, std::string const& config) const

Callers 1

IsIPOEnabledMethod · 0.95

Calls 3

GetPropertyMethod · 0.95
cmStrCatFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected