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

Function HandleCacheMode

Source/cmGetPropertyCommand.cxx:541–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541bool HandleCacheMode(cmExecutionStatus& status, std::string const& name,
542 OutType infoType, std::string const& variable,
543 std::string const& propertyName)
544{
545 if (name.empty()) {
546 status.SetError("not given name for CACHE scope.");
547 return false;
548 }
549
550 cmValue value = nullptr;
551 if (status.GetMakefile().GetState()->GetCacheEntryValue(name)) {
552 value = status.GetMakefile().GetState()->GetCacheEntryProperty(
553 name, propertyName);
554 }
555 StoreResult(infoType, status.GetMakefile(), variable, value);
556 return true;
557}
558
559bool HandleInstallMode(cmExecutionStatus& status, std::string const& name,
560 OutType infoType, std::string const& variable,

Callers 1

cmGetPropertyCommandFunction · 0.70

Calls 7

StoreResultFunction · 0.70
emptyMethod · 0.45
SetErrorMethod · 0.45
GetCacheEntryValueMethod · 0.45
GetStateMethod · 0.45
GetMakefileMethod · 0.45
GetCacheEntryPropertyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…