<br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 4:54 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 1/17/2013 4:42 PM, Alexander Neundorf wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes.<br>
Or maybe you can do something with the ExternalProject support, to first do a<br>
native build in an external project, and then use the generated executable in<br>
the cross build.<br>
I haven&#39;t tried this myself, but it might work.<br>
</blockquote></div>
I have been thinking that ExternalProject and cross-compiling might go very well together.  You could do host and target builds, and cross populate caches and set toolchains automatically in the ExternalProject.  I have not tried either, but ExternalProject did not exist when the original cross-compile stuff happened, and I think they could really complement each other.<br>

<br>
-- <br>
Bill Hoffman<br>
Kitware, Inc.<br>
28 Corporate Drive<br>
Clifton Park, NY 12065<br>
<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a><br>
<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>
<a href="tel:518%20881-4905" value="+15188814905" target="_blank">518 881-4905</a> (Direct)<br>
<a href="tel:518%20371-3971%20x105" value="+15183713971" target="_blank">518 371-3971 x105</a><br>
Fax <a href="tel:%28518%29%20371-4573" value="+15183714573" target="_blank">(518) 371-4573</a><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/<u></u>listinfo/cmake</a><br>
</blockquote></div><br>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&#39;d specified for the main project. If that&#39;s the way it works, then I&#39;m probably stuck.<br>
<br>If there&#39;s a way to make it not do that, then I probably missed an option somewhere. I&#39;ll have to play around with it some more and see if I can find a way to make that work.<br><br>
Thanks,<br>Christopher