[CMake] determine 32 vs 64 bit linux
aaron.meadows at thomsonreuters.com
aaron.meadows at thomsonreuters.com
Thu Jun 23 11:17:55 EDT 2011
I use this exact code to determine 64bit vs. 32bit for visual studio
2005/2008/2010.
Aaron C. Meadows
-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Rolf Eike Beer
Sent: Thursday, June 23, 2011 1:08 AM
To: cmake at cmake.org
Subject: Re: [CMake] determine 32 vs 64 bit linux
Am Mittwoch, 22. Juni 2011, 17:33:01 schrieb Karl Merkley:
> I need to install a library into a directory whose name depends on the
> machine type. For example
>
> if (WIN32)
> if (CMAKE_CL_64)
> set(ARCH_DIR "win32")
> else()
> set(ARCH_DIR "win64")
> endif()
I'm not sure if that works for "Visual Studio" generators.
Eike
More information about the CMake
mailing list