| 609 | } |
| 610 | |
| 611 | std::string cmExtraCodeLiteGenerator::GetConfigurationName( |
| 612 | cmMakefile const* mf) const |
| 613 | { |
| 614 | std::string confName = mf->GetSafeDefinition("CMAKE_BUILD_TYPE"); |
| 615 | // Trim the configuration name from whitespaces (left and right) |
| 616 | confName.erase(0, confName.find_first_not_of(" \t\r\v\n")); |
| 617 | confName.erase(confName.find_last_not_of(" \t\r\v\n") + 1); |
| 618 | if (confName.empty()) { |
| 619 | confName = "NoConfig"; |
| 620 | } |
| 621 | return confName; |
| 622 | } |
| 623 | |
| 624 | std::string cmExtraCodeLiteGenerator::GetBuildCommand( |
| 625 | cmMakefile const* mf, std::string const& targetName) const |
no test coverage detected