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

Function HandleVariableMode

Source/cmGetPropertyCommand.cxx:528–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528bool HandleVariableMode(cmExecutionStatus& status, std::string const& name,
529 OutType infoType, std::string const& variable,
530 std::string const& propertyName)
531{
532 if (!name.empty()) {
533 status.SetError("given name for VARIABLE scope.");
534 return false;
535 }
536
537 return StoreResult(infoType, status.GetMakefile(), variable,
538 status.GetMakefile().GetDefinition(propertyName));
539}
540
541bool HandleCacheMode(cmExecutionStatus& status, std::string const& name,
542 OutType infoType, std::string const& variable,

Callers 1

cmGetPropertyCommandFunction · 0.85

Calls 5

StoreResultFunction · 0.70
emptyMethod · 0.45
SetErrorMethod · 0.45
GetMakefileMethod · 0.45
GetDefinitionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…