summaryrefslogtreecommitdiffstats
path: root/Help/command/target_precompile_headers.rst
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-11-06 21:27:21 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-09 19:52:30 (GMT)
commitd4d1f8529752f25c64d3d0ab54768b7b93785a3f (patch)
treedddfcd3cc94ae38312fdb09ff90139510e66d4fc /Help/command/target_precompile_headers.rst
parent968224484f1c32fc2057addb44a6e533f384dd2b (diff)
downloadCMake-d4d1f8529752f25c64d3d0ab54768b7b93785a3f.zip
CMake-d4d1f8529752f25c64d3d0ab54768b7b93785a3f.tar.gz
CMake-d4d1f8529752f25c64d3d0ab54768b7b93785a3f.tar.bz2
Help: Move a note about arguments and genexes into include file
Diffstat (limited to 'Help/command/target_precompile_headers.rst')
-rw-r--r--Help/command/target_precompile_headers.rst21
1 files changed, 10 insertions, 11 deletions
diff --git a/Help/command/target_precompile_headers.rst b/Help/command/target_precompile_headers.rst
index a204dd1..8e5c0e9 100644
--- a/Help/command/target_precompile_headers.rst
+++ b/Help/command/target_precompile_headers.rst
@@ -70,17 +70,16 @@ included by absolute path. For example:
<unordered_map>
)
-Arguments to ``target_precompile_headers()`` may use "generator expressions"
-with the syntax ``$<...>``.
-See the :manual:`cmake-generator-expressions(7)` manual for available
-expressions.
-The :genex:`$<COMPILE_LANGUAGE:...>` generator expression is particularly
-useful for specifying a language-specific header to precompile for
-only one language (e.g. ``CXX`` and not ``C``). In this case, header
-file names that are not explicitly in double quotes or angle brackets
-must be specified by absolute path. Also, when specifying angle brackets
-inside a generator expression, be sure to encode the closing ``>`` as
-:genex:`$<ANGLE-R>`. For example:
+.. |command_name| replace:: ``target_compile_features``
+.. |more_see_also| replace:: The :genex:`$<COMPILE_LANGUAGE:...>` generator
+ expression is particularly useful for specifying a language-specific header
+ to precompile for only one language (e.g. ``CXX`` and not ``C``). In this
+ case, header file names that are not explicitly in double quotes or angle
+ brackets must be specified by absolute path. Also, when specifying angle
+ brackets inside a generator expression, be sure to encode the closing
+ ``>`` as :genex:`$<ANGLE-R>`. For example:
+.. include:: GENEX_NOTE.txt
+ :start-line: 1
.. code-block:: cmake