diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2018-11-02 21:27:09 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2018-11-09 15:38:07 (GMT) |
commit | 1222f02e343e804f1fcc8ff09e56dc13ac233d98 (patch) | |
tree | 9e2a433430c3fd32b98ddf4d4f554eb69a103930 /Help/command/if.rst | |
parent | 9463d73cc4d58b190fac0cac6aeee424b5d29514 (diff) | |
download | CMake-1222f02e343e804f1fcc8ff09e56dc13ac233d98.zip CMake-1222f02e343e804f1fcc8ff09e56dc13ac233d98.tar.gz CMake-1222f02e343e804f1fcc8ff09e56dc13ac233d98.tar.bz2 |
If: Support the 'DEFINED CACHE{}' syntax
Diffstat (limited to 'Help/command/if.rst')
-rw-r--r-- | Help/command/if.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst index 1cd9965..a682c83 100644 --- a/Help/command/if.rst +++ b/Help/command/if.rst @@ -187,11 +187,10 @@ Possible conditions are: ``if(<variable|string> IN_LIST <variable>)`` True if the given element is contained in the named list variable. -``if(DEFINED <name>|ENV{<name>})`` - True if a variable or environment variable - with given ``<name>`` is defined. - The value of the variable does not matter. - Note that macro arguments are not variables. +``if(DEFINED <name>|CACHE{<name>}|ENV{<name>})`` + True if a variable, cache variable or environment variable + with given ``<name>`` is defined. The value of the variable + does not matter. Note that macro arguments are not variables. ``if((condition) AND (condition OR (condition)))`` The conditions inside the parenthesis are evaluated first and then |