[CMake] Cross Compiling with cmake 2.8.5
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Jul 29 15:59:42 EDT 2011
On Wednesday 27 July 2011, r.czerny at esa-grimma.de wrote:
> Hi all,
>
> I tried to cross-compile an internal application for windows on a linux
> machine,
> but failed, because cmake at some point re-start the configure process,
> and
> drops the CMAKE_SYSTEM_NAME variable along that way. Attached is a
> minimal CMakeLists.txt, which reproduces the problem.
>
> Is there a way to avoid the reconfiguration?
Did you try to use a toolchain file as described in the cmake cross compiling
wiki page ?
http://www.vtk.org/Wiki/CMake_Cross_Compiling
It even has a separate link for mingw.
Without it, the CMAKE_SYSTEM_NAME you have set via -D probably doesn't make it
into the try_compile()-projects.
Alex
More information about the CMake
mailing list