On Mon, Mar 31, 2008 at 8:17 AM, Niko Vuokko &lt;<a href="mailto:niko.vuokko@tkk.fi">niko.vuokko@tkk.fi</a>&gt; 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>
&gt; On Mon, Mar 31, 2008 at 5:17 AM, Niko Vuokko &lt;<a href="mailto:niko.vuokko@tkk.fi">niko.vuokko@tkk.fi</a>&gt; wrote:<br>
</div><div class="Ih2E3d">&gt; &gt; I have just a single project, which contains one small shared library and<br>
&gt; &gt; several small executables. I also have just one CMakeLists.txt. Therefore<br>
&gt; &gt; my<br>
&gt; &gt; current settings should be enough. I also tried fiddling the cache with<br>
&gt; &gt; ccmake, but it didn&#39;t change anything.<br>
&gt;<br>
&gt; What version of CMake is this?<br>
&gt;<br>
&gt; Can you attach a CMakeLists.txt file that can be used to reproduce the<br>
&gt; issue?<br>
<br>
</div>My CMake is 2.4-patch 8, it&#39;s my personal CMake (in ~/local) as the system<br>
doesn&#39;t have one, but it shouldn&#39;t matter. Make has version 3.80.<br>
<br>
I tried building the shared library in the executables. Result was that make<br>
didn&#39;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&#39;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&#39;<br>make -f CMakeFiles/xyz.dir/build.make CMakeFiles/xyz.dir/depend<br>
make[2]: Entering directory `/home/lowman/tmp/foo/build&#39;<br>make[2]: Nothing to be done for `CMakeFiles/xyz.dir/depend&#39;.<br>make[2]: Leaving directory `/home/lowman/tmp/foo/build&#39;<br>make -f CMakeFiles/xyz.dir/build.make CMakeFiles/xyz.dir/build<br>
make[2]: Entering directory `/home/lowman/tmp/foo/build&#39;<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&nbsp;&nbsp; -o CMakeFiles/xyz.dir/xyz.o&nbsp;&nbsp; -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&nbsp;&nbsp;&nbsp;&nbsp; -fPIC &quot;CMakeFiles/xyz.dir/xyz.o&quot;&nbsp;&nbsp; -o xyz -rdynamic <br>make[2]: Leaving directory `/home/lowman/tmp/foo/build&#39;<br>
/usr/local/cmake/bin/cmake -E cmake_progress_report /home/lowman/tmp/foo/build/CMakeFiles&nbsp; 1<br>[100%] Built target xyz<br>make[1]: Leaving directory `/home/lowman/tmp/foo/build&#39;<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