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

Function HandleGlobalMode

Source/cmGetPropertyCommand.cxx:358–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358bool HandleGlobalMode(cmExecutionStatus& status, std::string const& name,
359 OutType infoType, std::string const& variable,
360 std::string const& propertyName)
361{
362 if (!name.empty()) {
363 status.SetError("given name for GLOBAL scope.");
364 return false;
365 }
366
367 // Get the property.
368 cmake* cm = status.GetMakefile().GetCMakeInstance();
369 return StoreResult(infoType, status.GetMakefile(), variable,
370 cm->GetState()->GetGlobalProperty(propertyName));
371}
372
373bool HandleDirectoryMode(cmExecutionStatus& status, std::string const& name,
374 OutType infoType, std::string const& variable,

Callers 1

cmGetPropertyCommandFunction · 0.70

Calls 7

GetGlobalPropertyMethod · 0.80
StoreResultFunction · 0.70
emptyMethod · 0.45
SetErrorMethod · 0.45
GetCMakeInstanceMethod · 0.45
GetMakefileMethod · 0.45
GetStateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…