[CMake] Cross compilation question

Alexander Neundorf a.neundorf-work at gmx.net
Tue Feb 15 15:39:19 EST 2011


On Monday 14 February 2011, Steven Wilson wrote:
> My apologies if this question has been asked and answered previously.    I
> have a CMake system that I use for cross compilation for iOS software (ie
> reset CMAKE_C_COMPILER, etc...).  

How do you do that ?
You have to set CMAKE_C_COMPILER, CMAKE_CXX_COMPILER and CMAKE_SYSTEM_NAME. 
And they have to be set so that they stay the same later on, e.g. by using 
a "toolchain file".

Do you do it that way or in some other way ?

Do you use the makefile generator or xcode ?

Alex


More information about the CMake mailing list