diff options
author | Craig Scott <craig.scott@crascit.com> | 2021-11-28 09:52:42 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2021-12-01 07:30:26 (GMT) |
commit | 3a9695557dc68e6520159ec69e21483a1311b420 (patch) | |
tree | e663002e1da75dd7539da67b039c3fba6dbfb1a3 /Help | |
parent | 9f07f1939ba604e4bb47493bb0165c848b9be9c4 (diff) | |
download | CMake-3a9695557dc68e6520159ec69e21483a1311b420.zip CMake-3a9695557dc68e6520159ec69e21483a1311b420.tar.gz CMake-3a9695557dc68e6520159ec69e21483a1311b420.tar.bz2 |
Help: Explicitly state that if(ENV{some_var}) is always false
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/if.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index 6ff8852..b4b4897 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -61,7 +61,9 @@ Basic Expressions ``if(<variable|string>)`` True if given a variable that is defined to a value that is not a false - constant. False otherwise. (Note macro arguments are not variables.) + constant. False otherwise. Note that macro arguments are not variables. + Environment variables also cannot be tested this way, e.g. + ``if(ENV{some_var})`` will always evaluate to false. Logic Operators """"""""""""""" |