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

Method SetConfigDirCacheVariable

Source/cmFindPackageCommand.cxx:1992–2004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1990}
1991
1992void cmFindPackageCommand::SetConfigDirCacheVariable(std::string const& value)
1993{
1994 std::string const help =
1995 cmStrCat("The directory containing a CMake configuration file for ",
1996 this->Name, '.');
1997 this->Makefile->AddCacheDefinition(this->Variable, value, help,
1998 cmStateEnums::PATH, true);
1999 if (this->Makefile->GetPolicyStatus(cmPolicies::CMP0126) ==
2000 cmPolicies::NEW &&
2001 this->Makefile->IsNormalDefinitionSet(this->Variable)) {
2002 this->Makefile->AddDefinition(this->Variable, value);
2003 }
2004}
2005
2006bool cmFindPackageCommand::FindPrefixedConfig()
2007{

Callers 2

FindPackageMethod · 0.95
FindConfigMethod · 0.95

Calls 5

IsNormalDefinitionSetMethod · 0.80
cmStrCatFunction · 0.70
AddCacheDefinitionMethod · 0.45
GetPolicyStatusMethod · 0.45
AddDefinitionMethod · 0.45

Tested by

no test coverage detected