socmake_message
socmake_message(MODE)
.. note:: This is a macro, and so does not introduce a new scope.
Thin wrapper around CMake's built-in message() command
that prefixes the message text with SoCMake: , so that every message emitted by SoCMake follows a uniform,
easily greppable format (e.g. -- SoCMake: <text> for a STATUS message).
It is meant to be used as a drop-in replacement for message() wherever SoCMake itself reports something to the user:
socmake_message(STATUS "Doing something")
socmake_message(WARNING "Something looks wrong")
socmake_message(FATAL_ERROR "Something is wrong")
Parameters
| Name | Type | Description |
|---|---|---|
MODE | string | Message mode, forwarded as-is to message() (e.g. STATUS, WARNING, FATAL_ERROR, DEBUG). |