[CMake] Xcode generator problems

Axel Roebel Axel.Roebel at ircam.fr
Tue May 2 20:07:00 EDT 2006


On Tuesday 02 May 2006 17:22, you wrote:
> > Here I attach an extract of the strace output for the two calls mentioned
> > above, however, this time on a linux system because I don't know how to
> > get a trace on mac os x.
>
> More info on that here:
> http://www.cmake.org/Wiki/CMake_Platform_Dependent_Issues
>
> You have to use ktrace/kdump
>
> HTH
> Mathieu

Thanks, in fact I found the problem!
It is due to the repeated call of CollapseFullPath ("") which is used to 
determine the current absolute path cmDependsC.cxx
for each dependency file with absolute path.

This call is extremely costly on the mac. And it seems completely unnecessary 
because the current directory is never changed
in cmDependsC.cxx. Initialization of the otherwise  unused member Directory  
with the current directory and elemination of  CollapseFullPath 
reduced  dependency determination on the mac from 2 minutes too 8 seconds.
This is even faster than for cmake 2.2.3. 

I have send a patch for closer inspection of the solution
via the bug tracker.

Cheers,

-- 
Axel Roebel
IRCAM Analysis/Synthesis Team


More information about the CMake mailing list