warn-strictΒΆ
The
CMD_NON_TARGET_DIRECTIVEdiagnostic category was added to diagnose commands that affect the directory scope when comparable target-specific commands exist. The use of such directives is disrecommended. This diagnostic may be controlled with the-Wnon-target-directivecommand-line option, thenonTargetDirectivefield in aCMake Presetswarningsobject, or thecmake_diagnostic()command.The
CMD_STRICTdiagnostic category was added to control diagnostics regarding allowed but disrecommended usage as a group. This diagnostic may be controlled with the-Wstrictcommand-line option, thestrictfield in aCMake Presetswarningsobject, or thecmake_diagnostic()command.