CMake color output

Assuming the console shell supports color output, it can be pleasant for users to have color build system (Make) and compiler output. This is easily set by setting environment variable CMAKE_COLOR_DIAGNOSTICS.

  • Linux add to ~/.profile:
  • macOS add to ~/.zshrc:
  • Windows, set CMAKE_COLOR_DIAGNOSTICS=1 via the user environment variable GUI.