Skip to content

Fix cmake message severity to avoid scaring users#566

Merged
ChrisJChang merged 2 commits into
masterfrom
fix-cmake-message-severity
Dec 15, 2025
Merged

Fix cmake message severity to avoid scaring users#566
ChrisJChang merged 2 commits into
masterfrom
fix-cmake-message-severity

Conversation

@williamjameshandley

Copy link
Copy Markdown
Collaborator

Summary

  • Addresses Trim cmake messages / avoid scaring users #564: Trim cmake messages / avoid scaring users
  • Changes informational messages about excluded/disabled features from alarming BoldRed to BoldCyan (consistent with existing exclusion messages)
  • Red is now reserved for actual errors that require user action

Changes

  • warnings.cmake: Remove red color from "Werror is disabled" and add clarifying text "(this is normal for most builds)"
  • utilities.cmake: Change h5py/hdf5 version mismatch from BoldRed to Yellow note, clarify it only affects specific backends like pbarlike
  • optional.cmake: Change missing MPI, HDF5, SQLite, ROOT messages from BoldRed to BoldCyan with "X" prefix
  • externals.cmake: Change c++14/17 requirement message to BoldCyan
  • preprocessor.cmake: Change graphviz not found message to BoldCyan

Rationale

The BoldCyan with "X" prefix pattern is already used elsewhere in the codebase for disabled features (e.g., "MPI is disabled"), so this makes the messaging consistent. Users should only see red when something actually requires their attention.

Test plan

  • Run cmake and verify messages are less alarming
  • Verify excluded features still show clearly with cyan "X" prefix

🤖 Generated with Claude Code

Change informational messages about excluded/disabled features from
alarming BoldRed to BoldCyan (consistent with existing exclusion
messages). Red should be reserved for actual errors.

Changes:
- warnings.cmake: Remove red color from "Werror is disabled" and add
  clarifying text "(this is normal for most builds)"
- utilities.cmake: Change h5py/hdf5 version mismatch from BoldRed to
  Yellow note, clarify it only affects specific backends like pbarlike
- optional.cmake: Change missing MPI, HDF5, SQLite, ROOT messages from
  BoldRed to BoldCyan with "X" prefix
- externals.cmake: Change c++14/17 requirement message to BoldCyan
- preprocessor.cmake: Change graphviz not found message to BoldCyan

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pstoecker pstoecker linked an issue Dec 13, 2025 that may be closed by this pull request
@ChrisJChang ChrisJChang self-requested a review December 15, 2025 15:02
@ChrisJChang ChrisJChang merged commit e983e9e into master Dec 15, 2025
0 of 5 checks passed
@ChrisJChang ChrisJChang deleted the fix-cmake-message-severity branch December 15, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trim cmake messages / avoid scaring users

2 participants