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

Method AddFindDefinition

Source/cmFindPackageCommand.cxx:1519–1529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1517}
1518
1519void cmFindPackageCommand::AddFindDefinition(std::string const& var,
1520 cm::string_view const value)
1521{
1522 if (cmValue old = this->Makefile->GetDefinition(var)) {
1523 this->OriginalDefs[var].exists = true;
1524 this->OriginalDefs[var].value = *old;
1525 } else {
1526 this->OriginalDefs[var].exists = false;
1527 }
1528 this->Makefile->AddDefinition(var, value);
1529}
1530
1531void cmFindPackageCommand::RestoreFindDefinitions()
1532{

Callers 1

SetModuleVariablesMethod · 0.95

Calls 2

GetDefinitionMethod · 0.45
AddDefinitionMethod · 0.45

Tested by

no test coverage detected