mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 05:16:58 +00:00
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:
commit
cb0c3e33b6
1 file changed
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user