mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 22:30:13 -06:00
Merge topic 'reduce-policy-eval-scope'
cb19a63499 cmConditionEvaluator: Reduce the scope of the CMP0064 evaluation
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7287
This commit is contained in:
@@ -531,9 +531,6 @@ bool cmConditionEvaluator::HandleLevel0(cmArgumentList& newArgs,
|
||||
bool cmConditionEvaluator::HandleLevel1(cmArgumentList& newArgs, std::string&,
|
||||
MessageType&)
|
||||
{
|
||||
const auto policy64IsOld = this->Policy64Status == cmPolicies::OLD ||
|
||||
this->Policy64Status == cmPolicies::WARN;
|
||||
|
||||
for (auto args = newArgs.make2ArgsIterator(); args.current != newArgs.end();
|
||||
args.advance(newArgs)) {
|
||||
|
||||
@@ -625,7 +622,8 @@ bool cmConditionEvaluator::HandleLevel1(cmArgumentList& newArgs, std::string&,
|
||||
}
|
||||
// does a test exist
|
||||
else if (this->IsKeyword(keyTEST, *args.current)) {
|
||||
if (policy64IsOld) {
|
||||
if (this->Policy64Status == cmPolicies::OLD ||
|
||||
this->Policy64Status == cmPolicies::WARN) {
|
||||
continue;
|
||||
}
|
||||
newArgs.ReduceOneArg(
|
||||
|
||||
Reference in New Issue
Block a user