cmake-cxxmodules: Note config limitations

Today, CMake doesn't support configuration-agnostic module maps. For
CMakeConfig exports, this is irrelevant. For CPS, this may possibly
cause friction with other build systems. Briefly note that we don't
support this until we build a solution.
This commit is contained in:
Vito Gamberini
2026-01-28 18:41:35 -05:00
parent e4cbf1c153
commit b080922be6

View File

@@ -126,6 +126,12 @@ For the :ref:`Visual Studio Generators`:
- Use of modules provided by ``PRIVATE`` sources from ``PUBLIC`` module
sources is not diagnosed.
Separately, as a design choice, CMake does not express configuration-agnostic
module maps for imported targets. The :prop_tgt:`IMPORTED_CXX_MODULES_<CONFIG>`
target property is always tied to a specific configuration. This can lead to
some friction when importing/exporting targets from/to configuration-unaware
build systems. Future work will alleviate this restriction.
Usage
=====