[CMake] disabling CMAKE_COLOR_MAKEFILE in the kdevelop generator

Tanner Lovelace clubjuggler at gmail.com
Fri Apr 7 22:44:36 EDT 2006


On 4/7/06, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> Hi,
>
> I think in the kdevelop project generator the cmake options
> CMAKE_COLOR_MAKEFILE should always be disabled and CMAKE_VERBOSE_MAKEFILE
> should always be enabled.
> How/where do I do this ?
> The reason: the log window of kdevelop doesn't interpret the color codes,
> so you only see the control characters, and kdevelop itself shortens the
> ouput, so that there is no problem with the full output.
>
> So, where to do it ?

How about putting something like this in the main CMakeLists.txt file?

IF(CMAKE_GENERATOR MATCHES "KDevelop3")
  SET(CMAKE_COLOR_MAKEFILE OFF)
  SET(CMAKE_VERBOSE_MAKEFILE ON)
ENDIF(CMAKE_GENERATOR MATCHES "KDevelop3)

Cheers,
Tanner
--
Tanner Lovelace
clubjuggler at gmail dot com
http://wtl.wayfarer.org/
(fieldless) In fess two roundels in pale, a billet fesswise and an
increscent, all sable.


More information about the CMake mailing list