<div dir="ltr">Scratch the first one, it's got some typos. This is the one I meant to upload.  I've been using it for cross-compiling on Cray.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">- Chuck<br></div></div></div>
<br><div class="gmail_quote">On Thu, Nov 19, 2015 at 1:17 PM, Chuck Atkins <span dir="ltr"><<a href="mailto:chuck.atkins@kitware.com" target="_blank">chuck.atkins@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The current behavior is to not specify any toolchain and invoke CMake<br>
without additional arguments for configuring the NATIVE portion of the<br>
build.  However, CMake will actually set the CC, CXX, and FC<br>
environment variables to full paths of the compilers in the<br>
CMAKE_{C,CXX,Fortran}_COMPILER CMake variables inside the CMake process.<br>
This results in those variables being propagated to any execute_process<br>
calls so without explicitly providing a separate toolchain file, the<br>
configure step for the NATIVE host will pick up the compilers used by<br>
the cross-compile toolchain intended for the target CPU.<br>
---<br>
 cmake/modules/CrossCompile.cmake | 14 ++++++++++----<br>
 1 file changed, 10 insertions(+), 4 deletions(-)<br>
</blockquote></div><br></div>