| 1082 | } |
| 1083 | |
| 1084 | std::string cmGlobalGenerator::GetLanguageOutputExtension( |
| 1085 | cmSourceFile const& source) const |
| 1086 | { |
| 1087 | std::string const& lang = source.GetLanguage(); |
| 1088 | if (!lang.empty()) { |
| 1089 | return this->GetLanguageOutputExtension(lang); |
| 1090 | } |
| 1091 | // if no language is found then check to see if it is already an |
| 1092 | // output extension for some language. In that case it should be ignored |
| 1093 | // and in this map, so it will not be compiled but will just be used. |
| 1094 | std::string const& ext = source.GetExtension(); |
| 1095 | if (!ext.empty()) { |
| 1096 | if (this->OutputExtensions.count(ext)) { |
| 1097 | return ext; |
| 1098 | } |
| 1099 | } |
| 1100 | return ""; |
| 1101 | } |
| 1102 | |
| 1103 | std::string cmGlobalGenerator::GetLanguageOutputExtension( |
| 1104 | std::string const& lang) const |
no test coverage detected