summaryrefslogtreecommitdiffstats
path: root/Help/command/if.rst
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-01-02 09:56:05 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-01-03 21:45:23 (GMT)
commit6b170578b891caafe5c518e9f4d53c0bd914b8d1 (patch)
tree7f4496bea216044e48bcbe6e6485c574b3cfd3fa /Help/command/if.rst
parent5c09fe028318e48b68c3128d3f465a3ba6f65287 (diff)
downloadCMake-6b170578b891caafe5c518e9f4d53c0bd914b8d1.zip
CMake-6b170578b891caafe5c518e9f4d53c0bd914b8d1.tar.gz
CMake-6b170578b891caafe5c518e9f4d53c0bd914b8d1.tar.bz2
Help: Non-zero floating point numbers are true in if() expressions
Fixes: #22991
Diffstat (limited to 'Help/command/if.rst')
-rw-r--r--Help/command/if.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst
index 6957142..a729b1e 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -52,7 +52,8 @@ Basic Expressions
``if(<constant>)``
True if the constant is ``1``, ``ON``, ``YES``, ``TRUE``, ``Y``,
- or a non-zero number. False if the constant is ``0``, ``OFF``,
+ or a non-zero number (including floating point numbers).
+ False if the constant is ``0``, ``OFF``,
``NO``, ``FALSE``, ``N``, ``IGNORE``, ``NOTFOUND``, the empty string,
or ends in the suffix ``-NOTFOUND``. Named boolean constants are
case-insensitive. If the argument is not one of these specific