summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-05-05 16:50:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-05-05 16:50:53 (GMT)
commit213f3917155ebe70b312c94cd8031bafa82c7215 (patch)
tree519c1687ec1424658552d3b65381abeeb3263496 /Help/command
parent7d78dcbebbb028c17de38e337942e0df061c6f20 (diff)
parenta693da21f3ac17ca6201b8b6cf4865295c0fe260 (diff)
downloadCMake-213f3917155ebe70b312c94cd8031bafa82c7215.zip
CMake-213f3917155ebe70b312c94cd8031bafa82c7215.tar.gz
CMake-213f3917155ebe70b312c94cd8031bafa82c7215.tar.bz2
Merge topic 'HelpEnv'
a693da21f3 Help: from command:if, link to environment variables ab2bdbaf31 Help: Cross-reference ENV operator from cmake-language(7) manual ee4e728a69 Help: From Environment Variables section, link to cmake -E env etc Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7239
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/if.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst
index 4f955db..64f1c35 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -71,8 +71,9 @@ Basic Expressions
True if given a variable that is defined to a value that is not a false
constant. False otherwise, including if the variable is undefined.
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.
+ :ref:`Environment Variables <CMake Language Environment Variables>` also
+ cannot be tested this way, e.g. ``if(ENV{some_var})`` will always evaluate
+ to false.
``if(<string>)``
A quoted string always evaluates to false unless: