Files
CMake/Tests/RunCMake/GeneratorExpressionShortCircuit/GoodAND.cmake
Martin Duffy 27244a8f73 cmGeneratorExpressionNode: Fix short-circuit logic
Fix logic added by commit 634079b86d (cmGeneratorExpressionEvaluator:
Short-circuit boolean operators, 2023-09-11, v3.28.0-rc1~47^2) and
add missing test cases.

Fixes: #25412
2023-11-13 11:11:18 -05:00

8 lines
146 B
CMake

set(error $<0>)
add_custom_target(check ALL COMMAND check
$<AND:0,${error}>
$<AND:0,1,${error}>
$<AND:1,0,${error}>
$<AND:0,0,${error}>
)