The answer is right there on the linked site:
The
--log-level
command-line option to each of these tools can be used to control which messages will be shown. To make a log level persist between CMake runs, theCMAKE_MESSAGE_LOG_LEVEL
variable can be set instead. Note that the command line option takes precedence over the cache variable.