Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have colorized outputs from C/Cpp compilers as default #2182

Merged
merged 2 commits into from
Feb 4, 2024

Conversation

erlingrj
Copy link
Collaborator

@erlingrj erlingrj commented Feb 3, 2024

This simply adds set(CMAKE_COLOR_DIAGNOSTICS ON) to the CMakeLists.txt generated for C and Cpp programs. This will colorize the compiler output so it is much easier to separate errors from warnings etc.

@erlingrj erlingrj requested a review from cmnrd February 3, 2024 22:05
@erlingrj erlingrj added enhancement Enhancement of existing feature c Related to C target cpp Related to C++ target cmake labels Feb 3, 2024
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea! Thanks for suggesting this!

@lhstrh lhstrh merged commit dd372f3 into master Feb 4, 2024
42 of 43 checks passed
@lhstrh lhstrh deleted the c-cpp-color-output branch February 4, 2024 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c Related to C target cmake cpp Related to C++ target enhancement Enhancement of existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants