diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-04-21 16:55:13 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-04-21 17:41:41 (GMT) |
commit | 5fe0e3627c8bda7db0e0f63d3fb9ae4c811e1afb (patch) | |
tree | d7260d5aee554a1c8c456d4eb7fecffc340cbd8d /Help | |
parent | 7fc013a9229087cbafeb9ff4c96d1d1acb71c5d6 (diff) | |
download | CMake-5fe0e3627c8bda7db0e0f63d3fb9ae4c811e1afb.zip CMake-5fe0e3627c8bda7db0e0f63d3fb9ae4c811e1afb.tar.gz CMake-5fe0e3627c8bda7db0e0f63d3fb9ae4c811e1afb.tar.bz2 |
VERIFY_HEADER_SETS: Clarify that header sets must be PUBLIC or INTERFACE
Diffstat (limited to 'Help')
-rw-r--r-- | Help/prop_tgt/VERIFY_HEADER_SETS.rst | 17 |
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. |