cmake hype?

Alexander Neundorf neundorf at kde.org
Fri Feb 3 17:08:50 CET 2006


Hi,

On Friday 03 February 2006 09:14, Christian Ehrlicher wrote:
> Hi,
>
> I currently don't understand the hype about cmake. What's the real
> adavantage over scons. It can't be the config files - I can't see a real
> difference between CMakeLists.txt and SConscript (the Sconscript files need
> some cleanup). I can compile kdelibs with SCons on windows - cmake doesn't
> run (yet). The configuration process with cmake is as slow as with SCons. I
> can't run cmake.exe from command line
> (http://lists.kde.org/?l=kde-core-devel&m=113852517212137&w=2)...

See current kdelibs/cmake/modules/FindKDE4.cmake, with a little centralized 
workaround:
if(WIN32 AND CMAKE_C_COMPILER MATCHES "cl\\.exe")
   set(MSVC TRUE)
endif(WIN32 AND CMAKE_C_COMPILER MATCHES "cl\\.exe")

we are perfectly able to use if(MSVC) everywhere we want.

It took me two weeks until cmake was able to compile almost complete kdelibs 
on my Slackware Linux box (slowed down by my problems with gcc 3.2.3 and 
templates). It took another week with the help Laurent Montel, Benjamin Reed, 
Tanner Lovelace, Kurt Pfeifle, Brad King and Bill Hoffman from cmake to get 
it compiling completely on SUSE, Debian, FreeBSD and Mac OS X ( with Qt 
installed as a framework).
There were no changes required to the tool itself (cmake), all issues could be 
solved using cmake scripts.

Just this week Peter Kruemmel started to try the stuff on Windows. We are now 
so far that kdelibs/win/ and kdelibs/dcop/ compile, so I think the hardest 
part is done (progress is quite slow since Peter doesn't have svn access and 
I have to commit patches and wait for his response).

> I won't blame the cmake team -  I just wonder why we implement all things
> with three different build systems...

Here is why:
http://mail.kde.org/pipermail/kde-buildsystem/2006-January/000480.html

So, in the not too distant future we'll have to decide for one buildsystem.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list