mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
This generator expression is the inverse of `LINK_ONLY` and only coveys usage requirements for the purposes of compilation. Its intended use is to avoid needing to export targets that do not have link usage requirements (e.g., header-only libraries) when used by another target. It will also be used to represent private usage requirements on exported C++ module-containing targets in the future. Eventually there should be logic to collapse nesting of `$<COMPILE_ONLY>` and `$<LINK_ONLY>` when generating instances of either. A TODO is left in the code for this case. See: #15415
6 lines
185 B
ReStructuredText
6 lines
185 B
ReStructuredText
genex-compile-only
|
|
------------------
|
|
|
|
* The :genex:`COMPILE_ONLY` generator expression has been added which provides
|
|
compilation usage requirements without any linking requirements.
|