From 6427902713f165c7494283074113d6ad78a8e167 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Fri, 3 Jun 2022 11:02:00 +0200 Subject: Help: genex: layout updates * create section for version comparisons * move $ and $ to "Output-Related Expressions" section --- Help/manual/cmake-generator-expressions.7.rst | 41 ++++++++++++++------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 03821ec..73356d9 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -99,6 +99,9 @@ String Comparisons ``1`` if ``string`` is member of the semicolon-separated ``list``, else ``0``. Uses case-sensitive comparisons. +Version Comparisons +------------------- + .. genex:: $ ``1`` if ``v1`` is a version less than ``v2``, else ``0``. @@ -557,25 +560,6 @@ Variable Queries evaluation will give ``C`` as link language, so the second pass will correctly add target ``libother`` as link dependency. -.. genex:: $ - - .. versionadded:: 3.18 - - Returns the list if it is the device link step, an empty list otherwise. - The device link step is controlled by :prop_tgt:`CUDA_SEPARABLE_COMPILATION` - and :prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` properties and - policy :policy:`CMP0105`. This expression can only be used to specify link - options. - -.. genex:: $ - - .. versionadded:: 3.18 - - Returns the list if it is the normal link step, an empty list otherwise. - This expression is mainly useful when a device link step is also involved - (see ``$`` generator expression). This expression can only - be used to specify link options. - String-Valued Generator Expressions =================================== @@ -1363,6 +1347,25 @@ Output-Related Expressions ``LINK_ONLY`` may also be used in a :prop_tgt:`LINK_LIBRARIES` target property. See policy :policy:`CMP0131`. +.. genex:: $ + + .. versionadded:: 3.18 + + Returns the list if it is the device link step, an empty list otherwise. + The device link step is controlled by :prop_tgt:`CUDA_SEPARABLE_COMPILATION` + and :prop_tgt:`CUDA_RESOLVE_DEVICE_SYMBOLS` properties and + policy :policy:`CMP0105`. This expression can only be used to specify link + options. + +.. genex:: $ + + .. versionadded:: 3.18 + + Returns the list if it is the normal link step, an empty list otherwise. + This expression is mainly useful when a device link step is also involved + (see :genex:`$` generator expression). This expression can + only be used to specify link options. + .. genex:: $ .. versionadded:: 3.24 -- cgit v0.12