diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-06-16 18:51:30 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-07-06 14:15:23 (GMT) |
commit | f3cfde394a903928cc379f3a56a9cb9618def665 (patch) | |
tree | cfe08d26ac37a4b3d378f0269883f1906a32a591 /Help | |
parent | ea3175a4ebba7bf8688f2f62f434a1602012ab61 (diff) | |
download | CMake-f3cfde394a903928cc379f3a56a9cb9618def665.zip CMake-f3cfde394a903928cc379f3a56a9cb9618def665.tar.gz CMake-f3cfde394a903928cc379f3a56a9cb9618def665.tar.bz2 |
cmTargetSourcesCommand: allow `INTERFACE` C++ modules when imported
`PUBLIC` filesets become `INTERFACE` upon installation. Allow
`INTERFACE` scopes for C++ modules when the target is imported.
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/target_sources.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/command/target_sources.rst b/Help/command/target_sources.rst index 0c4323c..4699a08 100644 --- a/Help/command/target_sources.rst +++ b/Help/command/target_sources.rst @@ -89,7 +89,7 @@ files within those directories. The acceptable types include: Sources which contain C++ interface module or partition units (i.e., those using the ``export`` keyword). This file set type may not have an - ``INTERFACE`` scope. + ``INTERFACE`` scope except on ``IMPORTED`` targets. ``CXX_MODULE_HEADER_UNITS`` @@ -98,7 +98,7 @@ files within those directories. The acceptable types include: Experimental. Gated by ``CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API`` C++ header sources which may be imported by other C++ source code. This file - set type may not have an ``INTERFACE`` scope. + set type may not have an ``INTERFACE`` scope except on ``IMPORTED`` targets. The optional default file sets are named after their type. The target may not be a custom target or :prop_tgt:`FRAMEWORK` target. |