[CMake] Building a tool to run on the host when cross-compiling

Pat Marion pat.marion at kitware.com
Tue Jan 22 03:26:04 EST 2013


Hi Bill,

We use ExternalProject on the VES project to manage crosscompile builds.
We use ExternalProject to create builds for the host, Android, iOS-device,
and iOS-simulator architectures.

Pat

On Fri, Jan 18, 2013 at 8:19 AM, Bill Hoffman <bill.hoffman at kitware.com>wrote:

> On 1/17/2013 5:01 PM, Christopher Lansing wrote:
>
>>
>> It definitely sounds like an interesting and promising combination. The
>> one snag I hit when I tried that was that the project I tried to use
>> through ExternalProject seemed to automatically pick up the toolchain
>> that I'd specified for the main project. If that's the way it works,
>> then I'm probably stuck.
>>
>> If there's a way to make it not do that, then I probably missed an
>> option somewhere. I'll have to play around with it some more and see if
>> I can find a way to make that work.
>>
> You should be able to force any values you need into the cache of the
> sub-projects and make it do whatever you need it to.
>
>
>
>
> --
> Bill Hoffman
> Kitware, Inc.
> 28 Corporate Drive
> Clifton Park, NY 12065
> bill.hoffman at kitware.com
> http://www.kitware.com
> 518 881-4905 (Direct)
> 518 371-3971 x105
> Fax (518) 371-4573
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<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<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130122/257eef8d/attachment.htm>


More information about the CMake mailing list