I have a project that has an option:
option(FOOBAR "hello world")
After a while I realize I don’t need this option. So I remove it from my project.
However, it’s still in my cache. This can cause confusion for other developers who don’t realize I removed it. Since the value will still show up in cmake-gui.
Is there a way to automatically delete unused project cache variables?