diff options
author | Brad King <brad.king@kitware.com> | 2022-05-05 16:50:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-05-05 16:50:53 (GMT) |
commit | 213f3917155ebe70b312c94cd8031bafa82c7215 (patch) | |
tree | 519c1687ec1424658552d3b65381abeeb3263496 /Help/command | |
parent | 7d78dcbebbb028c17de38e337942e0df061c6f20 (diff) | |
parent | a693da21f3ac17ca6201b8b6cf4865295c0fe260 (diff) | |
download | CMake-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.rst | 5 |
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: |