CMD_NON_TARGET_DIRECTIVEΒΆ

Added in version 4.5.

Command Line:

-W[no-][error=]non-target-directive

Presets:

warnings.nonTargetDirective, errors.nonTargetDirective

Default:

Ignore

Parent:

CMD_STRICT

Warn about use of non-target directives which alter the build environment. Unencapsulated alterations to the build environment can have unintentionally broad effect, potentially resulting in unnecessary build dependencies. Additionally, such commands cannot be used to express interface usage requirements. It is recommended that new development use target-specific commands instead.