cmCommonTargetGenerator: Factor out generation of code check rules
EDIT: This has been converted to a refactor-only change.
Original Description
I'm interested in working on #19772 (closed) with what was discussed in the comments of the issue, however I have an implementation questions for if I work on this:
- Is there an easy way of getting access to source file properties in
void cmNinjaTargetGenerator::WriteLanguageRules(language, config)
(similar question for the Makefile target generator)? I'm not sure what the correct way is of getting this property from just thestd::string sourceFile
path.
Issue: #19772 (closed)