Yep CMAKE_SIZEOF_VOID_P will be 4 if you've chosen a generator like "Visual Studio 9.0 2008", and 8 if you've chosen <meta charset="utf-8">"Visual Studio 9.0 2008 Win64"<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"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></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 <<a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a>> wrote:<br>
> CMAKE_SIZEOF_VOID_P will tell you the difference between target bit-widths:<br>
> 8 (for 64 bit) vs 4 (for 32 bit) - remember that just because you're running<br>
> on a 64-bit system doesn't mean you're compiling a 64-bit binary.<br>
> Ryan<br>
><br>
> On Sat, Feb 12, 2011 at 11:29 AM, Dominik Szczerba <<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>><br>
> wrote:<br>
>><br>
>> 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>
>><br>
>> Dominik<br>
>><br>
>> On Sat, Feb 12, 2011 at 6:19 PM, Dominik Szczerba <<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I can't really find a clear solution in google: how would one go about<br>
>> > detecting if the system is 32 or 64 bit? There are UNIX, WIN32 etc.<br>
>> > flags, but nothing really for the architecture.<br>
>> ><br>
>> > Thanks a lot,<br>
>> > Dominik<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<br>
>> <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:<br>
>> <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>
><br>
><br>
><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" target="_blank">http://academic.cleardefinition.com</a><br>
> Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik" target="_blank">http://tinyurl.com/rpavlik</a><br>
><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>