[CMake] Detecting 32/64 bit systems
Dominik Szczerba
dominik at itis.ethz.ch
Sat Feb 12 12:29:46 EST 2011
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 <dominik at itis.ethz.ch> 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
>
More information about the CMake
mailing list