[CMake] CMAKE_VERBOSE_MAKEFILE broken ?
Alexander Neundorf
a.neundorf-work at gmx.net
Wed Dec 28 17:38:33 EST 2005
> --- Ursprüngliche Nachricht ---
> Von: "Alexander Neundorf" <a.neundorf-work at gmx.net>
> An: cmake at www.cmake.org
> Betreff: [CMake] CMAKE_VERBOSE_MAKEFILE broken ?
> Datum: Wed, 28 Dec 2005 18:52:38 +0100 (MET)
>
> Hi,
>
> it seems SET(CMAKE_VERBOSE_MAKEFILE TRUE) doesn't work anymore with
> current cmake cvs :-/
> Here is a testcase:
>
> --8<-- CMakeLists.txt ----8<----------8<----------
>
> SET(CMAKE_VERBOSE_MAKEFILE ON)
>
> ADD_EXECUTABLE(blah main.c)
>
> --8<-- main.c ----8<----------8<----------
>
>
> #include <stdio.h>
>
> int main()
> {
> printf("hallo welt\n");
> }
>
> -------8<------------8<------------------------
>
> produces:
>
> ~/src/cmakeverbose$ make
> /usr/local/bin/cmake -H/home/alex/src/cmakeverbose
> -B/home/alex/src/cmakeverbose --check-build-system
> CMakeFiles/Makefile.cmake 0
> make -f CMakeFiles/Makefile2 all
> make[1]: Entering directory `/home/src/my_stuff/cmakeverbose'
> make[2]: Entering directory `/home/src/my_stuff/cmakeverbose'
> Scanning dependencies of target blah
> make[2]: Leaving directory `/home/src/my_stuff/cmakeverbose'
> make[2]: Entering directory `/home/src/my_stuff/cmakeverbose'
> Building C object CMakeFiles/blah.dir/main.o
> Linking C executable blah
> make[2]: Leaving directory `/home/src/my_stuff/cmakeverbose'
> make[1]: Leaving directory `/home/src/my_stuff/cmakeverbose'
With cmake from maybe two weeks ago it still worked.
It seems to have been broken with revision 1.93 of
cmLocalUnixMakefileGenerator3.cxx:
---------------
revision 1.93
date: 2005-12-22 21:42:36 +0000; author: hoffman; state: Exp; lines:
+40 -18
ENH: fix borland make clean targets before build, add new generators for
msys and mingw
-----------------
@@ -329,7 +331,7 @@ cmLocalUnixMakefileGenerator3
return;
}
this->WriteDisclaimer(ruleFileStream);
-
+ this->WriteSpecialTargetsTop(ruleFileStream);
this->WriteMakeVariables(ruleFileStream);
-----------
This change has the effect that CMakeFiles/Makefile2 contains on line 24:
# Suppress display of executed commands.
$(VERBOSE).SILENT:
and on line 44:
# Produce verbose output by default.
VERBOSE = 1
This way this Makefile is always silent.
Bye
Alex
--
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl
More information about the CMake
mailing list