| 936 | } |
| 937 | |
| 938 | cmValue 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 | |
| 954 | cmValue cmGeneratorTarget::GetLanguageExtensions(std::string const& lang) const |
| 955 | { |
no test coverage detected