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

Method GetConfigurationName

Source/cmExtraCodeLiteGenerator.cxx:611–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611std::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
624std::string cmExtraCodeLiteGenerator::GetBuildCommand(
625 cmMakefile const* mf, std::string const& targetName) const

Callers 1

GenerateMethod · 0.95

Calls 4

eraseMethod · 0.80
find_first_not_ofMethod · 0.80
find_last_not_ofMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected