diff options
author | Brad King <brad.king@kitware.com> | 2019-10-16 14:54:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-16 14:54:11 (GMT) |
commit | 84e14a52ff694b5fc28511bae68dbb1e39dde246 (patch) | |
tree | 9a957a30888df60dcec81b8693b6a511c1d4788d /Help/command | |
parent | c2a7729177fa62a4a8eb3e2f7385f3f517c42f91 (diff) | |
parent | ac75886525c647ef7081dc11f6c0c128463b7ecd (diff) | |
download | CMake-84e14a52ff694b5fc28511bae68dbb1e39dde246.zip CMake-84e14a52ff694b5fc28511bae68dbb1e39dde246.tar.gz CMake-84e14a52ff694b5fc28511bae68dbb1e39dde246.tar.bz2 |
Merge branch 'doc-pch-compile-language' into release-3.16
Merge-request: !3925
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/target_precompile_headers.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/command/target_precompile_headers.rst b/Help/command/target_precompile_headers.rst index 3a32f41..d283948 100644 --- a/Help/command/target_precompile_headers.rst +++ b/Help/command/target_precompile_headers.rst @@ -47,6 +47,9 @@ with the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual for available expressions. See the :manual:`cmake-compile-features(7)` manual for information on compile features and a list of supported compilers. +The ``$<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``). Usage ^^^^^ @@ -56,6 +59,7 @@ Usage target_precompile_headers(<target> PUBLIC project_header.h + "$<$<COMPILE_LANGUAGE:CXX>:cxx_only.h>" PRIVATE [["other_header.h"]] <unordered_map> |