When we bumped to cmake 3.15 minimum recently, we changed lots of constructs like this:
if (VERBOSE)
message (STATUS "blah")
endif ()
to this:
message (VERBOSE "blah")
but I didn't realize that this was not enough, and to do it right requires CMAKE_MESSAGE_LOG_LEVEL. So even when VERBOSE=ON, we weren't actually getting all the verbose messages. Here, we fix it.
When we bumped to cmake 3.15 minimum recently, we changed lots of constructs like this:
to this:
but I didn't realize that this was not enough, and to do it right requires CMAKE_MESSAGE_LOG_LEVEL. So even when VERBOSE=ON, we weren't actually getting all the verbose messages. Here, we fix it.
This mimics a similar recent fix in OIIO.