[CMake] Re: diff to bakefiles
Bill Hoffman
bill.hoffman at kitware.com
Fri Sep 21 09:03:40 EDT 2007
Christian Buhtz wrote:
> Mathieu Malaterre schrieb:
>> CMake is the most similar to Bakefile from these. It generates
>> semi-native makefiles -- while the makefile is for the native make
>> tool, it still requires presence of CMake during compilation. Bakefile
>> has no such requirement.
>
> You mean if I generate a MinGW-makefile (e.g. makefile.gcc) from a
> CMake -makefile I can not use it with MinGW alone (mingw32-make -f
> makefile.gcc)? I need to have installed CMake?
> Why? What is the technic behind it?
CMake is used to compute dependencies in the makefiles, and variety of
shell like
features in a cross platform way. Also, it puts rules in the makefiles
so that if an
input file to cmake changes, cmake will rerun and keep things up-to-date.
CMake is also performs system introspection and finds the locations of
libraries,
compilers and other things needed for the build. This is similar to what a
configure script does. However, a configure script depends on /bin/sh.
So, cmake needs to be run on the actual machine that you are building
on so that it can create makefiles that match that machine exactly.
-Bill
More information about the CMake
mailing list