The CMake variable CMAKE_COLOR_MAKEFILE sets the preference to generate a colored Makefile at Configure time.
At Build time, regardless if CMAKE_COLOR_MAKEFILE=ON, you can use 'make <target> COLOR=0' to turn off Makefile color dynamically. Running through cmake with 'cmake --build <dir> -- COLOR=0' does the same thing. You could also set COLOR=0 as an environment variable. I don't believe a Makefile generated with CMAKE_COLOR_MAKEFILE=OFF can have color turned back on dynamically, however. On Tue, Jun 9, 2015 at 9:17 PM, Dave Yost <d...@yost.com> wrote: > Hey, I love colors. But one of my users doesn’t. > > Why doesn’t this work? > > CMAKE_COLOR_MAKEFILE=OFF cmake .. > > If that worked, he could set it and forget it. > > Instead, he has to do this: > > cmake -DCMAKE_COLOR_MAKEFILE=OFF .. > > > > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake