You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, March 22nd 2008, 11:52pm

Verbose output and no colors when building kde

Using cmake to build a project I usually get a simple output in colors, e.g.

[ 0%] Building CXX object kdecore/CMakeFiles/kdecore.dir/config/kconfigini.o
[ 0%] Building CXX object kdecore/CMakeFiles/kdecore.dir/config/kdesktopfile.o
[ 0%] Building CXX object kdecore/CMakeFiles/kdecore.dir/config/ksharedconfig.o
[ 0%] Building CXX object kdecore/CMakeFiles/kdecore.dir/config/kcoreconfigskeleton.o

However, when building KDE4 from SVN, I get no colors and verbose output making it very hard to see what's actually going on.

I managed to get rid of the verbose output by commenting out the line
VERBOSE = 1
in build/<module>/CMakeFiles/Makefile2 but if I change anything that makes cmake execute, the file is overwritten, and the verbose output is back.

I have not found a way to get color output at all.

By exploring the configuration files that came with KDE, it looks like the intention is to have both simple output and colors enabled. src/<module>/cmake/modules/KDE4Defaults.cmake contains:
# Use colored output
# since cmake 2.4.0
set(CMAKE_COLOR_MAKEFILE ON)

I have cmake --version:
cmake version 2.4-patch 7

Anyway, if I create a simple project with a source file and a CMakeLists.txt, I get color output by default. Why is this broken in KDE?