diff --git a/Help/command/target_precompile_headers.rst b/Help/command/target_precompile_headers.rst index d283948cef..5ab3766e29 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 ^^^^^^^^