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 _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake