CMake: Spam-filtering options should be files, not paths
add_printable_variable_path(WITH_BOGOFILTER "Enable spam filtering using Bogofilter (defaults to /usr/bin/bogofilter)" ON) add_printable_variable_path(WITH_SPAMASSASSIN "Enable spam filtering using SpamAssassin (defaults to /usr/bin/spamassassin)" ON) add_printable_variable_path(WITH_SA_LEARN "Full path command where sa-learn is located (defaults to /usr/bin/sa-learn)" ON)
How to disable any of these?
If ON and "/usr/bin/bogofilter" is the same, then the default shall be not ON, but /usr/bin/bogofilter. Then it will be clear, that by deleting the value, feature is disabled.
On the other side, this settings are not binary (ON/OFF) like ENABLE_CANBERA, because for the latter ccmake allows me to toggle the value with the return key, but for WITH_BOGOFILTER this is not possible.