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

Function AddExportGenerator

Source/cmExportCommand.cxx:67–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static void AddExportGenerator(
68 cmMakefile& makefile, cmGlobalGenerator* globalGenerator,
69 std::unique_ptr<cmExportBuildFileGenerator> exportGenerator,
70 std::string const& fileName, cmExportSet* exportSet,
71 std::string const& cxxModulesDirectory)
72{
73 exportGenerator->SetExportFile(fileName.c_str());
74 exportGenerator->SetCxxModuleDirectory(cxxModulesDirectory);
75 if (exportSet) {
76 exportGenerator->SetExportSet(exportSet);
77 }
78 std::vector<std::string> configurationTypes =
79 makefile.GetGeneratorConfigs(cmMakefile::IncludeEmptyConfig);
80
81 for (std::string const& ct : configurationTypes) {
82 exportGenerator->AddConfiguration(ct);
83 }
84 if (exportSet) {
85 globalGenerator->AddBuildExportExportSet(exportGenerator.get());
86 }
87 makefile.AddExportBuildFileGenerator(std::move(exportGenerator));
88}
89
90static bool HandleTargetsMode(std::vector<std::string> const& args,
91 cmExecutionStatus& status)

Callers 2

HandleExportModeFunction · 0.85
HandleSpecialExportModeFunction · 0.85

Calls 10

moveFunction · 0.85
SetExportFileMethod · 0.80
c_strMethod · 0.80
SetCxxModuleDirectoryMethod · 0.80
SetExportSetMethod · 0.80
GetGeneratorConfigsMethod · 0.80
AddConfigurationMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…