mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
cmExportFileGenerator: export private compile info for C++ modules
When consuming exported targets which contain C++ modules, the consuming project must be able to recompile BMI files using the original target's flags. This is because a module source may use some private target usage requirement but not want to propagate it to consumers. To facilitate this, export the private information as necessary for consumers to be able to perform the BMI compilations.
This commit is contained in:
@@ -240,6 +240,11 @@ Properties on Targets
|
||||
/prop_tgt/IMPORTED
|
||||
/prop_tgt/IMPORTED_COMMON_LANGUAGE_RUNTIME
|
||||
/prop_tgt/IMPORTED_CONFIGURATIONS
|
||||
/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_DEFINITIONS
|
||||
/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_FEATURES
|
||||
/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_OPTIONS
|
||||
/prop_tgt/IMPORTED_CXX_MODULES_INCLUDE_DIRECTORIES
|
||||
/prop_tgt/IMPORTED_CXX_MODULES_LINK_LIBRARIES
|
||||
/prop_tgt/IMPORTED_GLOBAL
|
||||
/prop_tgt/IMPORTED_IMPLIB
|
||||
/prop_tgt/IMPORTED_IMPLIB_CONFIG
|
||||
|
||||
14
Help/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_DEFINITIONS.rst
Normal file
14
Help/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_DEFINITIONS.rst
Normal file
@@ -0,0 +1,14 @@
|
||||
IMPORTED_CXX_MODULES_COMPILE_DEFINITIONS
|
||||
----------------------------------------
|
||||
|
||||
.. versionadded:: 3.28
|
||||
|
||||
.. note ::
|
||||
|
||||
Experimental. Gated by ``CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API``
|
||||
|
||||
Preprocessor definitions for compiling an ``IMPORTED`` target's C++ module
|
||||
sources.
|
||||
|
||||
CMake will automatically drop some definitions that are not supported
|
||||
by the native build tool.
|
||||
13
Help/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_FEATURES.rst
Normal file
13
Help/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_FEATURES.rst
Normal file
@@ -0,0 +1,13 @@
|
||||
IMPORTED_CXX_MODULES_COMPILE_FEATURES
|
||||
-------------------------------------
|
||||
|
||||
.. versionadded:: 3.28
|
||||
|
||||
.. note ::
|
||||
|
||||
Experimental. Gated by ``CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API``
|
||||
|
||||
Compiler features enabled for this ``IMPORTED`` target's C++ modules.
|
||||
|
||||
The value of this property is used by the generators to set the include
|
||||
paths for the compiler.
|
||||
13
Help/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_OPTIONS.rst
Normal file
13
Help/prop_tgt/IMPORTED_CXX_MODULES_COMPILE_OPTIONS.rst
Normal file
@@ -0,0 +1,13 @@
|
||||
IMPORTED_CXX_MODULES_COMPILE_OPTIONS
|
||||
------------------------------------
|
||||
|
||||
.. versionadded:: 3.28
|
||||
|
||||
.. note ::
|
||||
|
||||
Experimental. Gated by ``CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API``
|
||||
|
||||
List of options to pass to the compiler for this ``IMPORTED`` target's C++
|
||||
modules.
|
||||
|
||||
.. include:: ../command/OPTIONS_SHELL.txt
|
||||
14
Help/prop_tgt/IMPORTED_CXX_MODULES_INCLUDE_DIRECTORIES.rst
Normal file
14
Help/prop_tgt/IMPORTED_CXX_MODULES_INCLUDE_DIRECTORIES.rst
Normal file
@@ -0,0 +1,14 @@
|
||||
IMPORTED_CXX_MODULES_INCLUDE_DIRECTORIES
|
||||
----------------------------------------
|
||||
|
||||
.. versionadded:: 3.28
|
||||
|
||||
.. note ::
|
||||
|
||||
Experimental. Gated by ``CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API``
|
||||
|
||||
List of preprocessor include file search directories when compiling C++
|
||||
modules for ``IMPORTED`` targets.
|
||||
|
||||
The value of this property is used by the generators to set the include
|
||||
paths for the compiler.
|
||||
11
Help/prop_tgt/IMPORTED_CXX_MODULES_LINK_LIBRARIES.rst
Normal file
11
Help/prop_tgt/IMPORTED_CXX_MODULES_LINK_LIBRARIES.rst
Normal file
@@ -0,0 +1,11 @@
|
||||
IMPORTED_CXX_MODULES_LINK_LIBRARIES
|
||||
-----------------------------------
|
||||
|
||||
.. versionadded:: 3.28
|
||||
|
||||
.. note ::
|
||||
|
||||
Experimental. Gated by ``CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API``
|
||||
|
||||
List of direct dependencies to use for usage requirements for C++ modules in
|
||||
the target's C++ modules.
|
||||
Reference in New Issue
Block a user