diff options
author | Joachim Wuttke (h) <j.wuttke@fz-juelich.de> | 2022-05-04 13:13:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-05 13:37:20 (GMT) |
commit | a693da21f3ac17ca6201b8b6cf4865295c0fe260 (patch) | |
tree | af3b2b93c586a95761307427159d53495cbc6b03 /Help/command | |
parent | ab2bdbaf31e308031ae56b31b48cf6da091566cf (diff) | |
download | CMake-a693da21f3ac17ca6201b8b6cf4865295c0fe260.zip CMake-a693da21f3ac17ca6201b8b6cf4865295c0fe260.tar.gz CMake-a693da21f3ac17ca6201b8b6cf4865295c0fe260.tar.bz2 |
Help: from command:if, link to environment variables
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: |