On Mon, Mar 31, 2008 at 8:17 AM, Niko Vuokko <<a href="mailto:niko.vuokko@tkk.fi">niko.vuokko@tkk.fi</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Monday 31 March 2008 14:56, you wrote:<br>
> On Mon, Mar 31, 2008 at 5:17 AM, Niko Vuokko <<a href="mailto:niko.vuokko@tkk.fi">niko.vuokko@tkk.fi</a>> wrote:<br>
</div><div class="Ih2E3d">> > I have just a single project, which contains one small shared library and<br>
> > several small executables. I also have just one CMakeLists.txt. Therefore<br>
> > my<br>
> > current settings should be enough. I also tried fiddling the cache with<br>
> > ccmake, but it didn't change anything.<br>
><br>
> What version of CMake is this?<br>
><br>
> Can you attach a CMakeLists.txt file that can be used to reproduce the<br>
> issue?<br>
<br>
</div>My CMake is 2.4-patch 8, it's my personal CMake (in ~/local) as the system<br>
doesn't have one, but it shouldn't matter. Make has version 3.80.<br>
<br>
I tried building the shared library in the executables. Result was that make<br>
didn't give any extra messages. So somehow the CMAKE_VERBOSE_MAKEFILE is ok<br>
for libraries, but not for executables. It was also verbose for the library<br>
if I built it static.<br>
<br>
Here's a minimal CMakeLists.txt, which gives no verbose output:<br>
<br>
PROJECT(XYZ C)<br>
<div class="Ih2E3d">SET(CMAKE_VERBOSE_MAKEFILE TRUE)<br>
</div>ADD_EXECUTABLE(ab ab.c)<br>
<br>
Therefore the problem really lies in executable targets. Do you have any idea<br>
what might cause this? Some system variable or other maybe?<br>
</blockquote></div><br>Seems to work fine for me (using CMake 2.4.8 on Linux (Ubuntu/gutsy)).<br><br>lowman@constanze:~/tmp/foo/build$ make<br>/usr/local/cmake/bin/cmake -H/home/lowman/tmp/foo -B/home/lowman/tmp/foo/build --check-build-system CMakeFiles/Makefile.cmake 0<br>
/usr/local/cmake/bin/cmake -E cmake_progress_start /home/lowman/tmp/foo/build/CMakeFiles 1<br>make -f CMakeFiles/Makefile2 all<br>make[1]: Entering directory `/home/lowman/tmp/foo/build'<br>make -f CMakeFiles/xyz.dir/build.make CMakeFiles/xyz.dir/depend<br>
make[2]: Entering directory `/home/lowman/tmp/foo/build'<br>make[2]: Nothing to be done for `CMakeFiles/xyz.dir/depend'.<br>make[2]: Leaving directory `/home/lowman/tmp/foo/build'<br>make -f CMakeFiles/xyz.dir/build.make CMakeFiles/xyz.dir/build<br>
make[2]: Entering directory `/home/lowman/tmp/foo/build'<br>/usr/local/cmake/bin/cmake -E cmake_progress_report /home/lowman/tmp/foo/build/CMakeFiles 1<br>[100%] Building C object CMakeFiles/xyz.dir/xyz.o<br>/usr/bin/gcc -o CMakeFiles/xyz.dir/xyz.o -c /home/lowman/tmp/foo/xyz.c<br>
Linking C executable xyz<br>/usr/local/cmake/bin/cmake -P CMakeFiles/xyz.dir/cmake_clean_target.cmake<br>/usr/bin/gcc -fPIC "CMakeFiles/xyz.dir/xyz.o" -o xyz -rdynamic <br>make[2]: Leaving directory `/home/lowman/tmp/foo/build'<br>
/usr/local/cmake/bin/cmake -E cmake_progress_report /home/lowman/tmp/foo/build/CMakeFiles 1<br>[100%] Built target xyz<br>make[1]: Leaving directory `/home/lowman/tmp/foo/build'<br>/usr/local/cmake/bin/cmake -E cmake_progress_start /home/lowman/tmp/foo/build/CMakeFiles 0<br>
<br clear="all"><br>-- <br>Philip Lowman