Genex: Add `IF` generator expression
This allows a single condition to be used to choose between two alternatives. Without this the condition must be duplicated with one surrounded by `NOT`. Closes: #15585
Showing
- Help/manual/cmake-generator-expressions.7.rst 2 additions, 0 deletionsHelp/manual/cmake-generator-expressions.7.rst
- Help/release/dev/if-genex.rst 7 additions, 0 deletionsHelp/release/dev/if-genex.rst
- Source/cmGeneratorExpressionNode.cxx 22 additions, 0 deletionsSource/cmGeneratorExpressionNode.cxx
- Tests/GeneratorExpression/CMakeLists.txt 4 additions, 0 deletionsTests/GeneratorExpression/CMakeLists.txt
- Tests/GeneratorExpression/check-part4.cmake 5 additions, 0 deletionsTests/GeneratorExpression/check-part4.cmake
- Tests/RunCMake/GeneratorExpression/BadIF-result.txt 1 addition, 0 deletionsTests/RunCMake/GeneratorExpression/BadIF-result.txt
- Tests/RunCMake/GeneratorExpression/BadIF-stderr.txt 15 additions, 0 deletionsTests/RunCMake/GeneratorExpression/BadIF-stderr.txt
- Tests/RunCMake/GeneratorExpression/BadIF.cmake 5 additions, 0 deletionsTests/RunCMake/GeneratorExpression/BadIF.cmake
- Tests/RunCMake/GeneratorExpression/RunCMakeTest.cmake 1 addition, 0 deletionsTests/RunCMake/GeneratorExpression/RunCMakeTest.cmake
Loading
Please register or sign in to comment