CMAKE_SIZEOF_VOID_P will tell you the difference between target bit-widths: 8 (for 64 bit) vs 4 (for 32 bit) - remember that just because you&#39;re running on a 64-bit system doesn&#39;t mean you&#39;re compiling a 64-bit binary.<div>
<br></div><div>Ryan<br><br><div class="gmail_quote">On Sat, Feb 12, 2011 at 11:29 AM, Dominik Szczerba <span dir="ltr">&lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
OK, got it experimentally. You have<br>
<br>
CMAKE_SYSTEM_PROCESSOR<br>
<br>
But wait, is the description below correct?<br>
<br>
<a href="http://www.cmake.org/Wiki/CMake_Useful_Variables" target="_blank">http://www.cmake.org/Wiki/CMake_Useful_Variables</a><br>
<br>
Opposed to the explanations there, which I saw, but took as not what I<br>
need, on my systems it amounts to i686 and x86_64, exactly what I<br>
need.<br>
<font color="#888888"><br>
Dominik<br>
</font><div><div></div><div class="h5"><br>
On Sat, Feb 12, 2011 at 6:19 PM, Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I can&#39;t really find a clear solution in google: how would one go about<br>
&gt; detecting if the system is 32 or 64 bit? There are UNIX, WIN32 etc.<br>
&gt; flags, but nothing really for the architecture.<br>
&gt;<br>
&gt; Thanks a lot,<br>
&gt; Dominik<br>
&gt;<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><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
<a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>
</div>