Hi all!
I want make cmake fail if there are some unused variables defined.
Currently I do get a warning, but I couldn’t find a way to cause cmake exit with non-zero return value.
For example, I want the following invocation to fail:
cmake -S . -B build -DSOME_UNUSED_VAR=ON
I tried with both -Wdev -Werror=dev
but it did not help.
Any ideas?