From f35df783b5c26b5ad1e54719ef1dac062c532bd7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 8 Nov 2019 09:14:31 -0500 Subject: Help: Document target_precompile_headers genex with angle brackets When passing a `
` inside a generator expression, the closing `>` needs to be encoded as `$`. Add an example to the docs. Fixes: #19940 --- Help/command/target_precompile_headers.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +`, be sure to encode the closing ``>`` +as ``$``. For example: + +.. code-block:: cmake + + target_precompile_headers(mylib PRIVATE + "$<$:>" + "$<$:>" + ) + See Also ^^^^^^^^ -- cgit v0.12