mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
Help: Explicitly state that if(ENV{some_var}) is always false
This commit is contained in:
@@ -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
|
||||
"""""""""""""""
|
||||
|
||||
Reference in New Issue
Block a user