[CMake] Adding cross-compiler support to CMake ...
Brandon J. Van Every
bvanevery at gmail.com
Wed Sep 6 17:26:16 EDT 2006
Sean McBride wrote:
> However, the whole idea of TRY_COMPILE is of course incompatible with
> this, since the minute you assume that the machine doing the building is
> the same type as the machine you are building for, you are in trouble...
>
Actually it's not invalid to compile it. That's what a cross-compiler
does. It's invalid to run it. CMake already has this distinction
between TRY_COMPILE and TRY_RUN, so if TRY_RUN is used inappropriately,
that's user error. If CMake knows it's in some kind of
cross-compilation mode, it can disallow TRY_RUN and deliver an error.
Cheers,
Brandon Van Every
More information about the CMake
mailing list