Merge topic 'fix-CMP0009-future-states'
a3a8177e
cmFileCommand: Fix implementation of CMP0009.
This commit is contained in:
commit
d569008868
|
@ -906,13 +906,13 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
||||||
{
|
{
|
||||||
switch(status)
|
switch(status)
|
||||||
{
|
{
|
||||||
|
case cmPolicies::REQUIRED_IF_USED:
|
||||||
|
case cmPolicies::REQUIRED_ALWAYS:
|
||||||
case cmPolicies::NEW:
|
case cmPolicies::NEW:
|
||||||
g.RecurseThroughSymlinksOff();
|
g.RecurseThroughSymlinksOff();
|
||||||
break;
|
break;
|
||||||
case cmPolicies::OLD:
|
case cmPolicies::OLD:
|
||||||
case cmPolicies::WARN:
|
case cmPolicies::WARN:
|
||||||
case cmPolicies::REQUIRED_IF_USED:
|
|
||||||
case cmPolicies::REQUIRED_ALWAYS:
|
|
||||||
g.RecurseThroughSymlinksOn();
|
g.RecurseThroughSymlinksOn();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1044,6 +1044,8 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
||||||
{
|
{
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
|
case cmPolicies::REQUIRED_IF_USED:
|
||||||
|
case cmPolicies::REQUIRED_ALWAYS:
|
||||||
case cmPolicies::NEW:
|
case cmPolicies::NEW:
|
||||||
// Correct behavior, yay!
|
// Correct behavior, yay!
|
||||||
break;
|
break;
|
||||||
|
@ -1059,12 +1061,6 @@ bool cmFileCommand::HandleGlobCommand(std::vector<std::string> const& args,
|
||||||
cmPolicies::GetPolicyWarning(cmPolicies::CMP0009));
|
cmPolicies::GetPolicyWarning(cmPolicies::CMP0009));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case cmPolicies::REQUIRED_IF_USED:
|
|
||||||
case cmPolicies::REQUIRED_ALWAYS:
|
|
||||||
this->SetError("policy CMP0009 error");
|
|
||||||
this->Makefile->IssueMessage(cmake::FATAL_ERROR,
|
|
||||||
cmPolicies::GetRequiredPolicyError(cmPolicies::CMP0009));
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue