If this helps anyone, I&#39;m working on a large project using CMake and in two different computers, both with the same version of Ubuntu and cmake, it is *REALLY SLOW* in only one of them while scanning dependencies, but it&#39;s not in the other laptop.&nbsp; (The &quot;slow&quot; dep. scanning is ~1 min. too)<br>
<br>I&#39;d be happy to help debugging this, because it&#39;s really annoying :-( <br><br>Regards,<br>Jose Luis<br><br><br><br><br><div class="gmail_quote">On Thu, Dec 4, 2008 at 12:46 AM, Senanu Pearson <span dir="ltr">&lt;<a href="mailto:senanu@myrealbox.com">senanu@myrealbox.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">&gt; Hi folks,<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Is there a way to speed up the dependency scan in version 2.6?<br>
<br>
I recently installed a new Linux OS (Mandriva 2009) which included an<br>
upgrade to cmake 2.6 (I _think_ I had version 2.4 before). However, when I<br>
run make (after running &quot;cmake .&quot;) it takes a long time (&gt;1min) to do the<br>
dependency scan. (i.e. the time when the message &quot;Scanning dependencies of<br>
target foo&quot; is printed) whereas the rest of the build takes about 10<br>
seconds. This happens every time I run make but it does successfully build<br>
(and the &quot;cmake .&quot; step is fast).<br>
</blockquote>
<br>
I did not experienced such slow down when going from 2.4 to 2.6<br>
would you be able to try a CMake 2.4 on the same system?<br>
<br>
You may<br>
<br>
1) download a tarball<br>
<a href="http://www.cmake.org/files/v2.4/cmake-2.4.8-Linux-i386.tar.gz" target="_blank">http://www.cmake.org/files/v2.4/cmake-2.4.8-Linux-i386.tar.gz</a><br>
2) untar it somewhere,<br>
3) update you path<br>
4) retry the build.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The odd thing is that it was almost instantaneous (with essentially the same<br>
code) under version 2.4 and is almost instantaneous on a (faster) mac<br>
(again, with the same code).<br>
<br>
</blockquote>
<br>
CMake is not the only thing which have changed then:<br>
<br>
<br>
 &nbsp;- system<br>
 &nbsp;- compiler &nbsp;--&gt; this may be important.<br>
 &nbsp;- disk speed, cpu, ..;<br>
<br>
<br>
-- <br>
Erk<br>
<br></div></div>
Erk,<br>
<br>
Yes, you are right - the 2.4 build doesn&#39;t seem to be any faster. All my hardware is the same but I&#39;m using gcc 4.3.2 and KDE4. Still, it seems strange that it is so incredibly slow.<br>
Unless anyone can offer a better solution, I&#39;m inclined to simply switch targets in the Makefile<br>
so that I can get a quick build without having to do quite as much typing every time (yeah, and<br>
break my habit, too).<br>
<br>
Thank you,<br>
Mark<div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>___________________________________________________________<br><br>Jose-Luis Blanco-Claraco &nbsp; &nbsp; &nbsp;Phone: +34 952 132848<br>Dpto. Ingenieria de Sistemas y Automatica<br>
E.T.S.I. Telecomunicacion &nbsp; &nbsp; &nbsp; Fax: +34 952 133361<br>Universidad de Malaga<br>Campus Universitario de Teatinos<br>29071 Malaga, Spain<br><br><a href="http://www.isa.uma.es/jlblanco">http://www.isa.uma.es/jlblanco</a><br>
___________________________________________________________<br><br><br>