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

Function HandleCacheEntry

Source/cmSetPropertyCommand.cxx:963–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963bool HandleCacheEntry(std::string const& cacheKey, cmMakefile const& makefile,
964 std::string const& propertyName,
965 std::string const& propertyValue, bool appendAsString,
966 bool appendMode, bool remove)
967{
968 // Set or append the property.
969 cmState* state = makefile.GetState();
970 if (remove) {
971 state->RemoveCacheEntryProperty(cacheKey, propertyName);
972 }
973 if (appendMode) {
974 state->AppendCacheEntryProperty(cacheKey, propertyName, propertyValue,
975 appendAsString);
976 } else {
977 state->SetCacheEntryProperty(cacheKey, propertyName, propertyValue);
978 }
979
980 return true;
981}
982
983bool HandleInstallMode(cmExecutionStatus& status,
984 std::set<std::string> const& names,

Callers 1

HandleCacheModeFunction · 0.85

Calls 4

GetStateMethod · 0.45
SetCacheEntryPropertyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…