[Cmake] RE: cmake RFC

Geoffrey Cross geoff at cross.lu
Wed May 1 06:34:54 EDT 2002


Can someone answer this (I'm a windoze user now):

> Having used CMake for about a day now, I can summarize a few 
> IMO fairly fundamental flaws in the UNIX makefile generator :
> 
> 1) The flags passed to the to select static/dynamic linking 
> are determined in a hand-edited configure file in the CMake 
> distribution, and are wrong for Linux at least.
> 
> 2) A typical release build will require some libraries to be 
> linked statically (vxl,libstdc++) and others dynamically 
> (GL,X,libm,libc). Apart from the linker flags being wrong, 
> there is no mechanism for this split into "local" and 
> "system" libraries. Consequently, hand-editing of link-lines 
> is necessary to make release builds.
> 
> 3) The c++ compiler is used as the linker, meaning that 
> libstdc++ is always linked dynamically, which is bad.
>   
> 4) There is no uniqifying of libraries on the link-line, so I 
> get cases where each library appears five or six times. I 
> guess this is hard to fix if there is no dependency engine to 
> determine the correct ordering. This makes the hand-editing 
> required in gripe 2 even more tedious.





More information about the CMake mailing list