From e73307957eb68710c66c42babd93da9262dd00d7 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Sat, 20 Dec 2025 19:06:57 +1100 Subject: Help: Fix minor grammar problems --- Help/manual/cmake-generator-expressions.7.rst | 37 +++++++++++++++------------ Help/variable/CMAKE_FIND_REQUIRED.rst | 6 ++--- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst index 7474197..d5dc281 100644 --- a/Help/manual/cmake-generator-expressions.7.rst +++ b/Help/manual/cmake-generator-expressions.7.rst @@ -2241,7 +2241,7 @@ In the following, the phrase "the ``tgt`` filename" means the name of the .. versionadded:: 3.15 .. versionadded:: 4.2 - The option ``POSTFIX``, which can be used to control the inclusion or not + The ``POSTFIX`` option can be used to control the inclusion or not of the :prop_tgt:`_POSTFIX` target property value as part of the base name. The default is ``POSTFIX:INCLUDE``. @@ -2319,7 +2319,7 @@ In the following, the phrase "the ``tgt`` filename" means the name of the .. versionadded:: 3.27 .. versionadded:: 4.2 - The option ``POSTFIX``, which can be used to control the inclusion or not + The ``POSTFIX`` option can be used to control the inclusion or not of the :prop_tgt:`_POSTFIX` target property value as part of the base name. The default is ``POSTFIX:INCLUDE``. @@ -2405,14 +2405,15 @@ In the following, the phrase "the ``tgt`` filename" means the name of the .. versionadded:: 3.15 .. versionadded:: 4.2 - The option ``POSTFIX``, which can be used to control the inclusion or not + The ``POSTFIX`` option can be used to control the inclusion or not of the :prop_tgt:`_POSTFIX` target property value as part of the base name. The default is ``POSTFIX:INCLUDE``. Base name of file used to link the target ``tgt``, i.e. :genex:`$` without prefix and suffix, and, optionally, postfix. - For example, if target file name is ``libbase_postfix.a``, the base name is: + For example, if the target file name is ``libbase_postfix.a``, the base name + is: * ``base_postfix`` for ``$`` or ``$``. @@ -2483,14 +2484,15 @@ In the following, the phrase "the ``tgt`` filename" means the name of the .. versionadded:: 3.27 .. versionadded:: 4.2 - The option ``POSTFIX``, which can be used to control the inclusion or not + The ``POSTFIX`` option can be used to control the inclusion or not of the :prop_tgt:`_POSTFIX` target property value as part of the base name. The default is ``POSTFIX:INCLUDE``. Base name of library file used to link the target ``tgt``, i.e. :genex:`$` without prefix and suffix,and, optionally, postfix. - For example, if target file name is ``libbase_postfix.a``, the base name is: + For example, if the target file name is ``libbase_postfix.a``, the base name + is: * ``base_postfix`` for ``$`` or ``$``. @@ -2564,14 +2566,15 @@ In the following, the phrase "the ``tgt`` filename" means the name of the .. versionadded:: 3.27 .. versionadded:: 4.2 - The option ``POSTFIX``, which can be used to control the inclusion or not + The ``POSTFIX`` option can be used to control the inclusion or not of the :prop_tgt:`_POSTFIX` target property value as part of the base name. The default is ``POSTFIX:INCLUDE``. Base name of the import file used to link the target ``tgt``, i.e. :genex:`$` without prefix and suffix, and, optionally, postfix. - For example, if target file name is ``libbase_postfix.tbd``, the base name is + For example, if the target file name is ``libbase_postfix.tbd``, the base + name is * ``base_postfix`` for ``$`` or ``$``. @@ -2696,29 +2699,29 @@ In the following, the phrase "the ``tgt`` filename" means the name of the where ``tgt`` is the name of a target. .. versionadded:: 4.2 - The option ``POSTFIX``, which can be used to control the inclusion or not + The ``POSTFIX`` option can be used to control the inclusion or not of the :prop_tgt:`_POSTFIX` target property value as part of the base name. The default is ``POSTFIX:INCLUDE``. .. versionchanged:: 4.2 The postfix, as specified by :prop_tgt:`DEBUG_POSTFIX` or :prop_tgt:`_POSTFIX` target properties, is always included in the - ``PDB`` base name, except if option ``POSTFIX`` has value ``EXCLUDE``. - See the policy :policy:`CMP0202`. + ``PDB`` base name, except if the ``POSTFIX`` option has the value + ``EXCLUDE``. See the policy :policy:`CMP0202`. The base name corresponds to the target PDB file name (see ``$``) without prefix and suffix, and, optionally, - postfix. For example, if target file name is ``base_postfix.pdb``, the base - name is + postfix. For example, if the target file name is ``base_postfix.pdb``, the + base name is * ``base_postfix`` for ``$`` or ``$``. * ``base`` for ``$``. - See also the :prop_tgt:`OUTPUT_NAME`, :prop_tgt:`PDB_NAME` target properties, - and their configuration-specific variants :prop_tgt:`OUTPUT_NAME_` - and :prop_tgt:`PDB_NAME_`, and the :prop_tgt:`_POSTFIX` and - :prop_tgt:`DEBUG_POSTFIX` target properties. + See also the :prop_tgt:`OUTPUT_NAME` and :prop_tgt:`PDB_NAME` target + properties, their configuration-specific variants + :prop_tgt:`OUTPUT_NAME_` and :prop_tgt:`PDB_NAME_`, and the + :prop_tgt:`_POSTFIX` and :prop_tgt:`DEBUG_POSTFIX` target properties. Note that ``tgt`` is not added as a dependency of the target this expression is evaluated on. diff --git a/Help/variable/CMAKE_FIND_REQUIRED.rst b/Help/variable/CMAKE_FIND_REQUIRED.rst index 0518edb..cb3f4b1 100644 --- a/Help/variable/CMAKE_FIND_REQUIRED.rst +++ b/Help/variable/CMAKE_FIND_REQUIRED.rst @@ -22,6 +22,6 @@ Note that enabling this variable breaks some commonly used patterns. Multiple calls to :command:`find_package` are sometimes used to obtain a different search order to the default. -See also the :variable:`CMAKE_REQUIRE_FIND_PACKAGE_` for making -a :command:`find_package` call ``REQUIRED``, and for additional information on -how enabling these variables can break commonly used patterns. +See also the :variable:`CMAKE_REQUIRE_FIND_PACKAGE_` variable for +making a :command:`find_package` call ``REQUIRED``, and for additional +information on how enabling these variables can break commonly used patterns. -- cgit v0.12