CMD_UNUSED_CLI
Added in version 4.4.
- Command Line:
- Presets:
- Default:
-
Ignore
Warn about variables that are declared on the command line, but not used.
This diagnostic is issued outside of the configuration / generation phases. Accordingly, while the action of this warning category can be queried as usual, the cmake_diagnostic() command is unable to affect the action of this diagnostic.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/diagnostic/CMD_UNUSED_CLI.html