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

Method StoreOption

Source/CPack/cmCPackGenerator.cxx:1082–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080
1081template <typename ValueType>
1082void cmCPackGenerator::StoreOption(std::string const& op, ValueType value)
1083{
1084 if (!value) {
1085 this->MakefileMap->RemoveDefinition(op);
1086 return;
1087 }
1088 cmCPackLogger(cmCPackLog::LOG_DEBUG,
1089 this->GetNameOfClass() << "::SetOption(" << op << ", " << value
1090 << ")" << std::endl);
1091 this->MakefileMap->AddDefinition(op, value);
1092}
1093
1094void cmCPackGenerator::SetOption(std::string const& op, char const* value)
1095{

Callers 2

StoreOptionIfNotSetMethod · 0.95
SetOptionMethod · 0.95

Calls 3

GetNameOfClassMethod · 0.80
RemoveDefinitionMethod · 0.45
AddDefinitionMethod · 0.45

Tested by

no test coverage detected