[CMake] ASM issue: regression from 2.6.0 to 2.6.2?

Alexander Neundorf a.neundorf-work at gmx.net
Fri Oct 17 13:35:31 EDT 2008


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


More information about the CMake mailing list