Merge topic 'cmp0199-null-fix'

b4e408d7d9 cmGeneratorExpressionNode: Fix check to CMP0199

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !12735
This commit is contained in:
Brad King authored and Kitware Robot committed 2026-10-30 10:16:05 -04:00
commit cb0c3e33b6
1 file changed
+3 -1
+3 -1
View File
@@ -3435,6 +3435,9 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
return false;
}
cmLocalGenerator const* const lg = eval->Context.LG;
if (!eval->HeadTarget) {
return false;
}
switch (eval->HeadTarget->GetPolicyStatusCMP0199()) {
case cmPolicies::WARN:
if (lg->GetMakefile()->PolicyOptionalWarningEnabled(
@@ -3455,7 +3458,6 @@ static const struct ConfigurationTestNode : public cmGeneratorExpressionNode
}
CM_UNREACHABLE;
return false;
}();
if (oldPolicy) {