summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-11-08 15:36:21 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-11-08 15:36:30 (GMT)
commit11e425be9b205a0a1427b0c60df4f4b1c9ffced0 (patch)
tree63342121580a7dc2352fd44779d0ad1251fed794 /Help
parent0f1458022d9e94118a656fa87df0c2daac29a458 (diff)
parentf35df783b5c26b5ad1e54719ef1dac062c532bd7 (diff)
downloadCMake-11e425be9b205a0a1427b0c60df4f4b1c9ffced0.zip
CMake-11e425be9b205a0a1427b0c60df4f4b1c9ffced0.tar.gz
CMake-11e425be9b205a0a1427b0c60df4f4b1c9ffced0.tar.bz2
Merge topic 'doc-pch-genex' into release-3.16
f35df783b5 Help: Document target_precompile_headers genex with angle brackets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4015
Diffstat (limited to 'Help')
-rw-r--r--Help/command/target_precompile_headers.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/Help/command/target_precompile_headers.rst b/Help/command/target_precompile_headers.rst
index d283948..5ab3766 100644
--- a/Help/command/target_precompile_headers.rst
+++ b/Help/command/target_precompile_headers.rst
@@ -79,6 +79,17 @@ must be available for the compiler to find them. Other header file names
source directory (e.g. :variable:`CMAKE_CURRENT_SOURCE_DIR`) and will be
included by absolute path.
+When specifying angle brackets inside a :manual:`generator expression
+<cmake-generator-expressions(7)>`, be sure to encode the closing ``>``
+as ``$<ANGLE-R>``. For example:
+
+.. code-block:: cmake
+
+ target_precompile_headers(mylib PRIVATE
+ "$<$<COMPILE_LANGUAGE:C>:<stddef.h$<ANGLE-R>>"
+ "$<$<COMPILE_LANGUAGE:CXX>:<cstddef$<ANGLE-R>>"
+ )
+
See Also
^^^^^^^^