summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-04-22 13:12:04 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-04-22 13:12:26 (GMT)
commit4f15a57060c34900aaef5feb88edd2270fcd52e9 (patch)
treed8efd44bf4d7e7df441a6a76652020dab299f7e8 /Help
parentb48e348b660a752f6595fca88069af586bf243cf (diff)
parent5fe0e3627c8bda7db0e0f63d3fb9ae4c811e1afb (diff)
downloadCMake-4f15a57060c34900aaef5feb88edd2270fcd52e9.zip
CMake-4f15a57060c34900aaef5feb88edd2270fcd52e9.tar.gz
CMake-4f15a57060c34900aaef5feb88edd2270fcd52e9.tar.bz2
Merge topic 'verify-header-sets-doc-clarification'
5fe0e3627c VERIFY_HEADER_SETS: Clarify that header sets must be PUBLIC or INTERFACE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7195
Diffstat (limited to 'Help')
-rw-r--r--Help/prop_tgt/VERIFY_HEADER_SETS.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/Help/prop_tgt/VERIFY_HEADER_SETS.rst b/Help/prop_tgt/VERIFY_HEADER_SETS.rst
index cbfd51b..e151017 100644
--- a/Help/prop_tgt/VERIFY_HEADER_SETS.rst
+++ b/Help/prop_tgt/VERIFY_HEADER_SETS.rst
@@ -8,14 +8,15 @@ their own.
When this property is set to true, and the target is an object library, static
library, shared library, or executable with exports enabled, and the target
-has one or more header sets, an object library target named
-``<target_name>_verify_header_sets`` is created. This verification target has
-one source file per header in the header sets. Each source file only includes
-its associated header file. The verification target links against the original
-target to get all of its usage requirements. The verification target has its
-:prop_tgt:`EXCLUDE_FROM_ALL` and :prop_tgt:`DISABLE_PRECOMPILE_HEADERS`
-properties set to true, and its :prop_tgt:`AUTOMOC`, :prop_tgt:`AUTORCC`,
-:prop_tgt:`AUTOUIC`, and :prop_tgt:`UNITY_BUILD` properties set to false.
+has one or more ``PUBLIC`` or ``INTERFACE`` header sets, an object library
+target named ``<target_name>_verify_header_sets`` is created. This verification
+target has one source file per header in the ``PUBLIC`` and ``INTERFACE``
+header sets. Each source file only includes its associated header file. The
+verification target links against the original target to get all of its usage
+requirements. The verification target has its :prop_tgt:`EXCLUDE_FROM_ALL` and
+:prop_tgt:`DISABLE_PRECOMPILE_HEADERS` properties set to true, and its
+:prop_tgt:`AUTOMOC`, :prop_tgt:`AUTORCC`, :prop_tgt:`AUTOUIC`, and
+:prop_tgt:`UNITY_BUILD` properties set to false.
If the header's :prop_sf:`LANGUAGE` property is set, the value of that property
is used to determine the language with which to compile the header file.