Re: [CMake] Cross compilation question

2011-02-15 Thread Steven Wilson
I haven't done anything with toolchains. I will take a look at the page and give it a go. Thanks, Steve On Tue, Feb 15, 2011 at 3:16 PM, Peter Kümmel wrote: > On 15.02.2011 22:52, Steven Wilson wrote: > >> In my CMake configuration files I have something like the following: >> >> >> if(SYSTE

Re: [CMake] Cross compilation question

2011-02-15 Thread Peter Kümmel
On 15.02.2011 22:52, Steven Wilson wrote: In my CMake configuration files I have something like the following: if(SYSTEM STREQUAL "iOS") set(CMAKE_C_COMPILER "foo" CACHE STRING "message" FORCE) set(CMAKE_CXX_COMPILER "bar" CACHE STRING "message" FORCE) endif(SYSTEM STREQUAL "iOS") D

Re: [CMake] Cross compilation question

2011-02-15 Thread Steven Wilson
In my CMake configuration files I have something like the following: if(SYSTEM STREQUAL "iOS") set(CMAKE_C_COMPILER "foo" CACHE STRING "message" FORCE) set(CMAKE_CXX_COMPILER "bar" CACHE STRING "message" FORCE) endif(SYSTEM STREQUAL "iOS") Then when configuring the system I pass -DSYSTEM

Re: [CMake] Cross compilation question

2011-02-15 Thread Alexander Neundorf
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, CMAK

[CMake] Cross compilation question

2011-02-14 Thread Steven Wilson
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...). Everything works great, except for the following usage scenario: 1. configure build system for iOS build. 2. buil