mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Help: from command:if, link to environment variables
This commit is contained in:
committed by
Brad King
parent
ab2bdbaf31
commit
a693da21f3
@@ -71,8 +71,9 @@ Basic Expressions
|
|||||||
True if given a variable that is defined to a value that is not a false
|
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.
|
constant. False otherwise, including if the variable is undefined.
|
||||||
Note that macro arguments are not variables.
|
Note that macro arguments are not variables.
|
||||||
Environment variables also cannot be tested this way, e.g.
|
:ref:`Environment Variables <CMake Language Environment Variables>` also
|
||||||
``if(ENV{some_var})`` will always evaluate to false.
|
cannot be tested this way, e.g. ``if(ENV{some_var})`` will always evaluate
|
||||||
|
to false.
|
||||||
|
|
||||||
``if(<string>)``
|
``if(<string>)``
|
||||||
A quoted string always evaluates to false unless:
|
A quoted string always evaluates to false unless:
|
||||||
|
|||||||
Reference in New Issue
Block a user