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

Method AddCacheEntry

Source/cmake.cxx:3216–3232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3214}
3215
3216void cmake::AddCacheEntry(std::string const& key, cmValue value,
3217 cmValue helpString, int type)
3218{
3219 this->State->AddCacheEntry(key, value, helpString,
3220 static_cast<cmStateEnums::CacheEntryType>(type));
3221 this->UnwatchUnusedCli(key);
3222
3223 if (key == "CMAKE_WARN_DEPRECATED"_s) {
3224 this->Messenger->SetSuppressDeprecatedWarnings(value && value.IsOff());
3225 } else if (key == "CMAKE_ERROR_DEPRECATED"_s) {
3226 this->Messenger->SetDeprecatedWarningsAsErrors(value.IsOn());
3227 } else if (key == "CMAKE_SUPPRESS_DEVELOPER_WARNINGS"_s) {
3228 this->Messenger->SetSuppressDevWarnings(value.IsOn());
3229 } else if (key == "CMAKE_SUPPRESS_DEVELOPER_ERRORS"_s) {
3230 this->Messenger->SetDevWarningsAsErrors(value && value.IsOff());
3231 }
3232}
3233
3234bool cmake::DoWriteGlobVerifyTarget() const
3235{

Callers 15

SetCacheArgsMethod · 0.95
ProcessCacheArgMethod · 0.95
AddCMakePathsMethod · 0.95
ActualConfigureMethod · 0.95
testCreateFromStackFrameFunction · 0.45
AddCacheDefinitionMethod · 0.45

Calls 7

UnwatchUnusedCliMethod · 0.95
IsOffMethod · 0.45
IsOnMethod · 0.45

Tested by 1

testCreateFromStackFrameFunction · 0.36