CPack External generator silently absorbs STATUS messages from package script
When using the new CPack External generator, if CPACK_EXTERNAL_PACKAGE_SCRIPT
is set to a CMake script, then any call to message(STATUS ...)
inside that script results in that message not being shown. If the STATUS
keyword is removed, then the message does show. FATAL_ERROR
and WARNING
work fine, this seems to be a problem only with STATUS
.
I came across this because I was using the cmake_print_variables()
function defined by the CMakePrintHelpers
module, which uses message(STATUS ...)
calls to print its output. It's a useful debugging aid for such scripts, but the silent dropping of STATUS
messages means it can give misleading or unexpected results.