einpoklum
einpoklum

Reputation: 132128

Can I get CMake not to warn me about unused cmdline-defined variables?

I would like to avoid CMake's warnings about variables defined on the command line (e.g. -DFOO=BOOL:ON or any value of any other types). In the past, there was a a command-line option, --warn-unused-vars, and the default was probably don't-warn. But now (CMake 3.31), that's not the case. See also the docs.

Is there a way, still, to suppress these warnings (Other than filtering out through a pipe of course)?

Upvotes: 0

Views: 11

Answers (0)

Related Questions