[CMake] Determine 32 vs 64 bit cpu
pellegrini
pellegrini at ill.fr
Thu Dec 22 06:23:05 EST 2011
Hi all,
I have a program that uses an external library whose path name depends
on its version (32 or 64 bit).
Is there a direct way in cmake to test whether my cpu is 32 or 64 bit ?
The one I found up to now is the following:
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(arch_64 TRUE)
else()
set(arch_64 FALSE)
endif()
thanks a lot and merry Christmas !
Eric
--
Eric Pellegrini
Calcul Scientifique
Institut Laue-Langevin
Grenoble, France
More information about the CMake
mailing list