glotzerlab / freud

Powerful, efficient particle trajectory analysis in scientific Python.
https://freud.readthedocs.io
BSD 3-Clause "New" or "Revised" License
282 stars 49 forks source link

Enable cmake color output for clang/ninja #1287

Closed janbridley closed 1 month ago

janbridley commented 1 month ago

As in ninja-build/Ninja's FAQ, cmake does not color output for build systems that buffer output. The code added in this PR fixes this

How Has This Been Tested?

CMake colors output with the changes made, and does not without.

Before:

image

After:

image

Types of changes

Checklist:

joaander commented 1 month ago

Merged up into nanobind.