Skip to content

ccmake3 interprets "Module xxx added" messages as errors

Summary

The cmsgemos_add_module CMake function prints Module xxx added... messages using message() without a mode argument. This is equivalent to message(NOTICE), ie "Important message printed to stderr to attract user’s attention."

Should switch to STATUS or VERBOSE level.

Steps to reproduce

Open ccmake, hit c. Messages are displayed.

What is the expected correct behavior?

Hitting c in ccmake doesn't display anything where there's no error.

Relevant logs and/or screenshots

Module gemcore added: (interface: gem/core; data: gemcore)
Module gemcore_layout-tree added: (interface: gem/core/layout-tree; data: gemcore/layout-tree)
Module gemrpc added: (interface: gem/rpc; data: gemrpc)
Module gemutils added: (interface: gem/utils; data: gemutils)
Module gembase added: (interface: gem/base; data: gembase)
Module gemonlinedb added: (interface: gem/onlinedb; data: gemonlinedb)
Module gemreadout added: (interface: gem/readout; data: gemreadout)
Module gemhardware added: (interface: gem/hardware; data: gemhardware)
Module gemhardware_utils added: (interface: gem/hardware/utils; data: gemhardware/utils)
Module gemhardware_devices added: (interface: gem/hardware/devices; data: gemhardware/devices)
Module gemhardware_managers added: (interface: gem/hardware/managers; data: gemhardware/managers)
Module gemmonitor added: (interface: gem/monitor; data: gemmonitor)
Module gemsupervisor added: (interface: gem/supervisor; data: gemsupervisor)
Module gemcalibration added: (interface: gem/calibration; data: gemcalibration)

Environment

  • Version used: develop
  • Operation System: gem904daq04

Possible fixes

- message("Module ${LIBRARY_NAME} added: (interface: ${INTERFACE_PATH}; data: ${DATA_PATH})")
+ message(STATUS "Module ${LIBRARY_NAME} added: (interface: ${INTERFACE_PATH}; data: ${DATA_PATH})")