diff options
author | Colby Pike <vectorofbool@gmail.com> | 2017-01-24 03:14:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-26 16:18:50 (GMT) |
commit | 895f7f16a79428689a263ba5cd9a72647dc8e912 (patch) | |
tree | 6c3ba32ffb5b9cbfedaf7e61ce45d63b94057c04 /Tests/GeneratorExpression/check-part4.cmake | |
parent | 8ea12a8b80c4c3153cc602f1d0735b3db8581ae8 (diff) | |
download | CMake-895f7f16a79428689a263ba5cd9a72647dc8e912.zip CMake-895f7f16a79428689a263ba5cd9a72647dc8e912.tar.gz CMake-895f7f16a79428689a263ba5cd9a72647dc8e912.tar.bz2 |
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
Diffstat (limited to 'Tests/GeneratorExpression/check-part4.cmake')
-rw-r--r-- | Tests/GeneratorExpression/check-part4.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/GeneratorExpression/check-part4.cmake b/Tests/GeneratorExpression/check-part4.cmake index 9e516d5..f5d14dd 100644 --- a/Tests/GeneratorExpression/check-part4.cmake +++ b/Tests/GeneratorExpression/check-part4.cmake @@ -13,3 +13,8 @@ if(WIN32) else() check(test_shell_path [[/shell/path]]) endif() + +check(if_1 "a") +check(if_2 "b") +check(if_3 "b") +check(if_4 "a") |