cmGeneratorExpressionNode: Fix short-circuit logic
Fix logic added by !8791 (merged) and add missing test cases.
Fixes: #25412 (closed)
Backport: release
Topic-rename: genex-fix-short-circuit
Edited by Brad King
Fix logic added by !8791 (merged) and add missing test cases.
Fixes: #25412 (closed)
Backport: release
Topic-rename: genex-fix-short-circuit