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

Method GetGeneratorConfigs

Source/cmMakefile.cxx:2864–2880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2862}
2863
2864std::vector<std::string> cmMakefile::GetGeneratorConfigs(
2865 GeneratorConfigQuery mode) const
2866{
2867 cmList configs;
2868 if (this->GetGlobalGenerator()->IsMultiConfig()) {
2869 configs.assign(this->GetDefinition("CMAKE_CONFIGURATION_TYPES"));
2870 } else if (mode != cmMakefile::OnlyMultiConfig) {
2871 std::string const& buildType = this->GetSafeDefinition("CMAKE_BUILD_TYPE");
2872 if (!buildType.empty()) {
2873 configs.emplace_back(buildType);
2874 }
2875 }
2876 if (mode == cmMakefile::IncludeEmptyConfig && configs.empty()) {
2877 configs.emplace_back();
2878 }
2879 return std::move(configs.data());
2880}
2881
2882bool cmMakefile::IsFunctionBlocked(cmListFileFunction const& lff,
2883 cmExecutionStatus& status)

Callers 15

VisitLinksMethod · 0.80
CheckLinkLibrariesMethod · 0.80
CheckTargetsForTypeMethod · 0.80
IsExcludedMethod · 0.80
WriteSummaryMethod · 0.80
GenerateTestFilesMethod · 0.80

Calls 8

GetGlobalGeneratorMethod · 0.95
GetDefinitionMethod · 0.95
moveFunction · 0.85
assignMethod · 0.80
emplace_backMethod · 0.80
IsMultiConfigMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected