Yep CMAKE_SIZEOF_VOID_P will be 4 if you&#39;ve chosen a generator like &quot;Visual Studio 9.0 2008&quot;, and 8 if you&#39;ve chosen <meta charset="utf-8">&quot;Visual Studio 9.0 2008 Win64&quot;<div><br></div><div>Ryan<br>
<br><div class="gmail_quote">On Sat, Feb 12, 2011 at 11:41 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;">
Quite right.<br>
<br>
So you claim that on Windows CMAKE_SIZEOF_VOID will tell me the<br>
*target* build system, not the physical one, while it will mach<br>
CMAKE_SYSTEM_PROCESSOR if the both are the same?<br>
<br>
Many thanks for the clarification.<br>
<font color="#888888"><br>
Dominik<br>
</font><div><div></div><div class="h5"><br>
On Sat, Feb 12, 2011 at 6:34 PM, Ryan Pavlik &lt;<a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a>&gt; wrote:<br>
&gt; CMAKE_SIZEOF_VOID_P will tell you the difference between target bit-widths:<br>
&gt; 8 (for 64 bit) vs 4 (for 32 bit) - remember that just because you&#39;re running<br>
&gt; on a 64-bit system doesn&#39;t mean you&#39;re compiling a 64-bit binary.<br>
&gt; Ryan<br>
&gt;<br>
&gt; On Sat, Feb 12, 2011 at 11:29 AM, Dominik Szczerba &lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; OK, got it experimentally. You have<br>
&gt;&gt;<br>
&gt;&gt; CMAKE_SYSTEM_PROCESSOR<br>
&gt;&gt;<br>
&gt;&gt; But wait, is the description below correct?<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.cmake.org/Wiki/CMake_Useful_Variables" target="_blank">http://www.cmake.org/Wiki/CMake_Useful_Variables</a><br>
&gt;&gt;<br>
&gt;&gt; Opposed to the explanations there, which I saw, but took as not what I<br>
&gt;&gt; need, on my systems it amounts to i686 and x86_64, exactly what I<br>
&gt;&gt; need.<br>
&gt;&gt;<br>
&gt;&gt; Dominik<br>
&gt;&gt;<br>
&gt;&gt; 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;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I can&#39;t really find a clear solution in google: how would one go about<br>
&gt;&gt; &gt; detecting if the system is 32 or 64 bit? There are UNIX, WIN32 etc.<br>
&gt;&gt; &gt; flags, but nothing really for the architecture.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks a lot,<br>
&gt;&gt; &gt; Dominik<br>
&gt;&gt; &gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the CMake FAQ at:<br>
&gt;&gt; <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Ryan Pavlik<br>
&gt; HCI Graduate Student<br>
&gt; Virtual Reality Applications Center<br>
&gt; Iowa State University<br>
&gt;<br>
&gt; <a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
&gt; <a href="http://academic.cleardefinition.com" target="_blank">http://academic.cleardefinition.com</a><br>
&gt; Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik" target="_blank">http://tinyurl.com/rpavlik</a><br>
&gt;<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>