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

Method SetPolicy

Source/cmMakefile.cxx:4074–4084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4072}
4073
4074bool cmMakefile::SetPolicy(char const* id, cmPolicies::PolicyStatus status)
4075{
4076 cmPolicies::PolicyID pid;
4077 if (!cmPolicies::GetPolicyID(id, /* out */ pid)) {
4078 this->IssueMessage(
4079 MessageType::FATAL_ERROR,
4080 cmStrCat("Policy \"", id, "\" is not known to this version of CMake."));
4081 return false;
4082 }
4083 return this->SetPolicy(pid, status);
4084}
4085
4086bool cmMakefile::SetPolicy(cmPolicies::PolicyID id,
4087 cmPolicies::PolicyStatus status)

Callers 5

ConfigureMethod · 0.95
ReadPackageMethod · 0.45
HandleSetModeFunction · 0.45
ApplyPolicyVersionMethod · 0.45

Calls 9

IssueMessageMethod · 0.95
GetCMakeInstanceMethod · 0.95
IsSetMethod · 0.95
IsOnMethod · 0.95
GetIsInTryCompileMethod · 0.80
GetRoleMethod · 0.80
cmStrCatFunction · 0.70
GetStateMethod · 0.45

Tested by

no test coverage detected