[CMake] Cross compilation question

Steven Wilson steven.wesley.wilson at gmail.com
Tue Feb 15 18:19:41 EST 2011


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 <syntheticpp at gmx.net> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110215/15440415/attachment.htm>


More information about the CMake mailing list