Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4,166
    • Issues 4,166
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Merge requests
  • !7348

cmake_language: Add GET_MESSAGE_LOG_LEVEL subcommand

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged alcroito requested to merge alcroito/cmake:log_level_command into master Jun 10, 2022
  • Overview 21
  • Commits 2
  • Pipelines 10
  • Changes 20

The new sub-command writes a string representation of the current log level to the output variable given to the sub-command.

Given that the log-level might be set either via the --log-level command line option or via the CMAKE_MESSAGE_LOG_LEVEL cache / regular variables, the priority for each of the log level sources is as follows, with the first one being the highest:

  1. --log-level
  2. CMAKE_MESSAGE_LOG_LEVEL regular variable
  3. CMAKE_MESSAGE_LOG_LEVEL cache variable
  4. default log level (STATUS)

Fixes: #23572 (closed)

Edited Jun 10, 2022 by Brad King
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: log_level_command