[CMake] CMake-created Makefiles on a system without CMake

William A. Hoffman billlist at nycap.rr.com
Fri Nov 11 18:02:30 EST 2005


CMake requires cmake to be installed during the build process.
If you move the build tree it will break.  There are various reasons
for this, and perhaps it should be a FAQ entry.

The main two reasons are:

- cmake does system introspection, finding headers, libraries, etc,
if you move the build file to a different machine all of that may be wrong.

- cmake uses its binaries to generate depend information at build time, not
cmake time.



At 05:27 PM 11/11/2005, Martin Baumann wrote:
>Hi,
>
>if a project uses CMake to create Makefiles, do these Makefiles need CMake to be run?
>
>Is it possible to compile the source just with the Makefiles on a system that hasn't installed
>CMake? Or will it be necessary to install CMake on this system, too?
>
>In the book 'Mastering CMake' on page 17 stands:
>> You generally should not generate makefiles or projects with CMake and move them to
>> another machine that does not have CMake installed
>
>The version on the system without CMake is a end user. This source code must not be
>changed at all. Is it ok for this case not to have installed CMake on this system?
>
>
>Thanks, Martin
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list