Quite right.

So you claim that on Windows CMAKE_SIZEOF_VOID will tell me the
*target* build system, not the physical one, while it will mach
CMAKE_SYSTEM_PROCESSOR if the both are the same?

Many thanks for the clarification.

Dominik

On Sat, Feb 12, 2011 at 6:34 PM, Ryan Pavlik <[email protected]> wrote:
> 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're running
> on a 64-bit system doesn't mean you're compiling a 64-bit binary.
> Ryan
>
> On Sat, Feb 12, 2011 at 11:29 AM, Dominik Szczerba <[email protected]>
> wrote:
>>
>> OK, got it experimentally. You have
>>
>> CMAKE_SYSTEM_PROCESSOR
>>
>> But wait, is the description below correct?
>>
>> http://www.cmake.org/Wiki/CMake_Useful_Variables
>>
>> Opposed to the explanations there, which I saw, but took as not what I
>> need, on my systems it amounts to i686 and x86_64, exactly what I
>> need.
>>
>> Dominik
>>
>> On Sat, Feb 12, 2011 at 6:19 PM, Dominik Szczerba <[email protected]>
>> wrote:
>> > Hi,
>> >
>> > I can't really find a clear solution in google: how would one go about
>> > detecting if the system is 32 or 64 bit? There are UNIX, WIN32 etc.
>> > flags, but nothing really for the architecture.
>> >
>> > Thanks a lot,
>> > Dominik
>> >
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>
>
>
> --
> Ryan Pavlik
> HCI Graduate Student
> Virtual Reality Applications Center
> Iowa State University
>
> [email protected]
> http://academic.cleardefinition.com
> Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
>
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to