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

Method GetPropertyWithPairedLanguageSupport

Source/cmGeneratorTarget.cxx:938–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938cmValue cmGeneratorTarget::GetPropertyWithPairedLanguageSupport(
939 std::string const& lang, char const* suffix) const
940{
941 cmValue propertyValue = this->Target->GetProperty(cmStrCat(lang, suffix));
942 if (!propertyValue) {
943 // Check if we should use the value set by another language.
944 if (lang == "OBJC") {
945 propertyValue = this->GetPropertyWithPairedLanguageSupport("C", suffix);
946 } else if (lang == "OBJCXX" || lang == "CUDA" || lang == "HIP") {
947 propertyValue =
948 this->GetPropertyWithPairedLanguageSupport("CXX", suffix);
949 }
950 }
951 return propertyValue;
952}
953
954cmValue cmGeneratorTarget::GetLanguageExtensions(std::string const& lang) const
955{

Callers 2

GetLanguageExtensionsMethod · 0.95

Calls 2

cmStrCatFunction · 0.70
GetPropertyMethod · 0.45

Tested by

no test coverage detected