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

Function GetExportSet

Source/cmExportCommand.cxx:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 char const* content, char const* hash);
53
54static cm::optional<cmExportSet*> GetExportSet(std::string const& name,
55 cmGlobalGenerator* generator,
56 cmExecutionStatus& status)
57{
58 cmExportSetMap& setMap = generator->GetExportSets();
59 auto const it = setMap.find(name);
60 if (it == setMap.end()) {
61 status.SetError(cmStrCat("Export set \""_s, name, "\" not found."_s));
62 return cm::nullopt;
63 }
64 return &it->second;
65}
66
67static void AddExportGenerator(
68 cmMakefile& makefile, cmGlobalGenerator* globalGenerator,

Callers 2

HandleExportModeFunction · 0.85
HandleSpecialExportModeFunction · 0.85

Calls 4

cmStrCatFunction · 0.70
findMethod · 0.45
endMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…