summaryrefslogtreecommitdiffstats
path: root/Help/policy/CMP0154.rst
Commit message (Collapse)AuthorAgeFilesLines
* cmNinjaTargetGenerator: do not order-depend on C++ module sourcesBen Boeckel2023-10-201-0/+6
| | | | | | | | | C++ module sources should not be included by any other TUs, so their presence cannot matter for order-only dependencies of the entire target. Exclude them. Update CMP0154 to take this into consideration and add tests to the `CXXModules` suite (which already deals with module support detection).
* Ninja: Allow compilation before generation of dependencies' private sourcesMartin Duffy2023-09-201-0/+53
This requires knowing when a generated header is public, which we can model using file sets. Add policy CMP0154 to treat generated sources as private by default in targets with file sets. Generated public headers can be specified in public file sets. Fixes: #24959 Issue: #15555