On Thursday 16 October 2008, you wrote: ... > > Btw. why do you need CMAKE_FORCE_C_COMPILER, i.e. why doesn't "arm- > > elf-gcc > > main.c" work ? > > I really don't know ;-) > > This is one of the oldest directive I've copied from a web site > example about how to perform cross-compilation with CMake.
Where exactly ? It should only be used if the compiler can't build an executable without special help (most compilers can). Ah, I see. You don't have a toolchain file which you need for cross compiling, i.e. cmake starts detecting everything and sets things up and then your settings are most probably too late. Did you follow the instructions given here ? http://www.cmake.org/Wiki/CMake_Cross_Compiling Alex _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake