[CMake] Cross compilation question
Peter Kümmel
syntheticpp at gmx.net
Tue Feb 15 17:16:41 EST 2011
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")
Do you know this wiki page:
http://www.cmake.org/Wiki/CMake_Cross_Compiling
I never had such problems you describe by writing a small
toolchain file and initially pass it to cmake by -DCMAKE_TOOLCHAIN_FILE=...
Later on I only call "cmake ."
Peter
More information about the CMake
mailing list