[Cmake] Cross-compiling

William A. Hoffman bill . hoffman at kitware . com
Tue, 10 Dec 2002 22:36:03 -0500


You can generate NMake files from the CMakeSetup.  However,
the current version of cmake requires that a configure script be run
to set up the c and C++ compilers.   This can not be done from the
windows GUI without cygwin in the path.   In the next version, this
will become a bit easier as we no longer use a configure script, and
cmake supports trycompile and tryrun.     However, it will still want to
run the compiler.

-Bill


At 06:47 PM 12/10/2002 -0500, Mathieu Mazerolle wrote:
>Hello,
>I'm attempting to use cmake in a cross-compiling environment. Is there any
>good reason why I can't use the windows gui (CMakeSetup) to generate Unix
>makefiles? The code seems to be a mess of #ifdefs for Cygwin vs. Win32, and
>I'm not sure this is going to make the job any easier. For example, why does
>CMake assume that just because I'm running the program on windows that I
>wanr WIN32 defined for my generated files?
>
>-- Matt
>_______________________________________________
>Cmake mailing list
>Cmake at public . kitware . com
>http://public . kitware . com/mailman/listinfo/cmake