[CMake] Cross Compiling with cmake 2.8.5
Eric Noulard
eric.noulard at gmail.com
Wed Jul 27 10:40:09 EDT 2011
2011/7/27 <r.czerny at esa-grimma.de>:
> 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?
>
> TIA
> R. Czerny
>
>
> Console output:
> someone at debian-vm:~/cross/build$ cmake -DCMAKE_SYSTEM_NAME=Windows
> -DCMAKE_C_COMPILER=i586-mingw32msvc-gcc
> -DCMAKE_RC_COMPILER=i586-mingw32msvc-windres ..
Did you read this
http://www.cmake.org/Wiki/CMake_Cross_Compiling
and if yes why didn't you use a toolchain file?
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list