[CMake] Only one target becomes verbose in the makefile

Niko Vuokko niko.vuokko at tkk.fi
Mon Mar 31 05:01:06 EDT 2008


Hi,

I have

SET(CMAKE_VERBOSE_MAKEFILE TRUE)

in my CMakeLists.txt, but CMakeCache.txt says still that

CMakeCache.txt:CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE.

Curiously the first built target (a shared library) prints out the gcc 
command, but the following targets (executables) print out nothing except the 
basic CMake messages during compilation and linking.

I also tried 'make VERBOSE=1' and 'VERBOSE=1 make', but the same thing 
happens! This would mean that CMake gets my variable from CMakeLists, but 
somehow the makefile still hates me.

Thanks for any help you can give.


More information about the CMake mailing list