TRY_COMPILE works fine for cross compiles, just not for *mutiple configs/architectures &quot;simultaneously&quot;* compiles...<br><br><div><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 3:41 PM, Sean McBride <span dir="ltr">&lt;<a href="mailto:sean@rogue-research.com">sean@rogue-research.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 6/11/09 3:00 PM, Michael Jackson said:<br>
<br>
&gt;-- CMAKE_SIZEOF_VOID_P: 4  &lt;============ THIS IS WRONG FOR X64 builds<br>
<br>
</div>Yeah, but gcc on 10.5 and earlier defaults to building 32 bit.  If you<br>
want 64 bit you need to pass &#39;-arch x86_64&#39; (or ppc64).  Or in the case<br>
of CMake, use CMAKE_OSX_ARCHITECTURES (or whatever its called).<br>
<br>
But if you use multiple architectures, like i386 _and_ x86_64, then each<br>
arch can and does have a different size void*.  Now sure what CMake does<br>
there, hopefully warns or errors.<br>
<br>
Always best to avoid TRY_RUNs and I guess TRY_COMPILES too for Universal<br>
Binaries/cross compilation.<br>
<font color="#888888"><br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research                        <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer              Montréal, Québec, Canada<br>
</font><div><div></div><div class="h5"><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/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/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/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>