[CMake] CMake Visual Studio 64bit flag?

Mateusz Loskot mateusz at loskot.net
Fri Oct 8 11:48:31 EDT 2010


On 08/10/10 16:42, Michael Jackson wrote:
> maybe SIZE_OF_VOID_POINTER of whatever that variable is in CMake?

In SOCI library, I use something like this:

if(UNIX AND CMAKE_SIZEOF_VOID_P EQUAL 4)
   set(SOCI_LIBDIR "lib64")
else()
   set(SOCI_LIBDIR "lib")
endif()

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org


More information about the CMake mailing list