summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-09-11 12:10:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-09-11 12:10:41 (GMT)
commit3fc4d8b457eec01ba18e61344d365dfda486ea7e (patch)
treeec1fc58b5c0723b7a8c01c9a8f825f3a4c40c428
parentbc41968c8a9d3a10daf43faf2abbc2d512baf4c6 (diff)
parent5924a1f0ebf544b4ac7516b0ff3f0f4e250f26e4 (diff)
downloadCMake-3fc4d8b457eec01ba18e61344d365dfda486ea7e.zip
CMake-3fc4d8b457eec01ba18e61344d365dfda486ea7e.tar.gz
CMake-3fc4d8b457eec01ba18e61344d365dfda486ea7e.tar.bz2
Merge topic 'doc-if-number'
5924a1f0eb Help: Document if() comparison number format Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8783
-rw-r--r--Help/command/if.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/Help/command/if.rst b/Help/command/if.rst
index c47c71b..5d85a1f 100644
--- a/Help/command/if.rst
+++ b/Help/command/if.rst
@@ -228,36 +228,36 @@ Comparisons
.. signature:: if(<variable|string> LESS <variable|string>)
:target: LESS
- True if the given string or variable's value is a valid number and less
- than that on the right.
+ True if the given string or variable's value parses as a real number
+ (like a C ``double``) and less than that on the right.
.. signature:: if(<variable|string> GREATER <variable|string>)
:target: GREATER
- True if the given string or variable's value is a valid number and greater
- than that on the right.
+ True if the given string or variable's value parses as a real number
+ (like a C ``double``) and greater than that on the right.
.. signature:: if(<variable|string> EQUAL <variable|string>)
:target: EQUAL
- True if the given string or variable's value is a valid number and equal
- to that on the right.
+ True if the given string or variable's value parses as a real number
+ (like a C ``double``) and equal to that on the right.
.. signature:: if(<variable|string> LESS_EQUAL <variable|string>)
:target: LESS_EQUAL
.. versionadded:: 3.7
- True if the given string or variable's value is a valid number and less
- than or equal to that on the right.
+ True if the given string or variable's value parses as a real number
+ (like a C ``double``) and less than or equal to that on the right.
.. signature:: if(<variable|string> GREATER_EQUAL <variable|string>)
:target: GREATER_EQUAL
.. versionadded:: 3.7
- True if the given string or variable's value is a valid number and greater
- than or equal to that on the right.
+ True if the given string or variable's value parses as a real number
+ (like a C ``double``) and greater than or equal to that on the right.
.. signature:: if(<variable|string> STRLESS <variable|string>)
:target: STRLESS