1CMAKE_MESSAGE_CONTEXT_SHOW 2-------------------------- 3 4.. versionadded:: 3.17 5 6Setting this variable to true enables showing a context with each line 7logged by the :command:`message` command (see :variable:`CMAKE_MESSAGE_CONTEXT` 8for how the context itself is specified). 9 10This variable is an alternative to providing the ``--log-context`` option 11on the :manual:`cmake <cmake(1)>` command line. Whereas the command line 12option will apply only to that one CMake run, setting 13``CMAKE_MESSAGE_CONTEXT_SHOW`` to true as a cache variable will ensure that 14subsequent CMake runs will continue to show the message context. 15 16Projects should not set ``CMAKE_MESSAGE_CONTEXT_SHOW``. It is intended for 17users so that they may control whether or not to include context with messages. 18