CMake does not warn.<div><br></div><div>And actually, I think I have to back-track on my statement a little bit.</div><div><br></div><div>Whether or not a TRY_COMPILE &quot;works&quot; for a multiple arch / config build *depends* entirely on what you are trying to compile and what result you are expecting to get out of it. If you do a try compile on some code to detect the presence of a function, for example, that should work fine on a universal binary build (presuming the function you&#39;re trying to link against is present in universal binary form in the library it lives in...).</div>
<div><br></div><div>The thing that won&#39;t work on a multiple arch/config build is trying to detect the size of something or the presence/absence of something where the thing you&#39;re trying to measure is different in the different archs / configs. If it&#39;s uniform across all archs/configs then you can measure it and get an answer that makes sense for all archs/configs. If not, then you can&#39;t.</div>
<div><br></div><div>Does that make sense?</div><div><br></div><div>So... CMake does not warn because it does not know whether what you are attempting to measure is valid or not. It&#39;s up to you to &quot;do the right thing&quot; in these sorts of situations.<br>
<br></div><div>You already know that if you are building a universal binary with both 32-bit and 64-bit architectures in it that it makes no sense to &quot;measure&quot; the size of &quot;void*&quot; at CMake time. You know this because you know there is more than one answer depending on which one runs.<br>
<div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Hope this clarifies things even further, (rather than muddying anybody&#39;s waters...)</div><div class="gmail_quote"><br></div>
<div class="gmail_quote">David</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Jun 11, 2009 at 6:56 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 5:25 PM, David Cole said:<br>
<br>
&gt;TRY_COMPILE works fine for cross compiles, just not for *mutiple<br>
&gt;configs/architectures &quot;simultaneously&quot;* compiles...<br>
<br>
</div>Thanks for the clarification, that language is clearer.<br>
<br>
Does CMake detect and warn in such cases?  (it is after all the common<br>
case on OS X.)<br>
<br>
Cheers,<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">____________________________________________________________<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>
<br>
<br>
</div></div></blockquote></div><br></div>