Should I be using types with -D options?

It doesn’t make a great deal of difference either way. The biggest difference the type makes is how ccmake and cmake-gui display the cache entry - giving it a type causes it to present as a more appropriate control, like a checkbox or a file input, instead of a simple text input.

1 Like