Skip to content

cmGeneratorExpressionNode: implement `COMPILE_ONLY` genex

Robert Maynard requested to merge robertmaynard/cmake:compile-only-genex into master

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.

Continuation of !8241 (closed)

Merge request reports