Since BOOL is such a common variable type, you can set it more succinctly with the shortcut: option(MY_OPTION "This is settable from the command line" OFF) For the BOOL datatype, there are several different wordings for ON and OFF. See cmake-variables for a listing of known variables in CMake.
3 option(MEM_NULL_TESTS "Enable NULL memory testing" OFF). 4 option(LOG_TO_CALLBACK "Enable extended logging through a callback" OFF). paquets pour les postes client AUF
CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, pre-processor generation, code generation, and template instantiation.
I assume they would need to add a --cmake-options and insert these before the source path so things are configured properly. The only way I have been able to get things to work when using options is performing a clean build then pass the option on first build or delete the CMake cache for the package prior to rebuilding.