Added external dependencies and modified build files to enable 64 bits builds on Windows (VC++ only for now)

This commit is contained in:
Laurent Gomila 2011-03-26 23:57:10 +01:00
parent 293cacfbda
commit 4e3feba25b
49 changed files with 17327 additions and 10838 deletions

View file

@ -15,10 +15,10 @@ endif()
# note: this test won't work for cross-compilation
include(CheckTypeSize)
check_type_size(void* SIZEOF_VOID_PTR)
if(${SIZEOF_VOID_PTR} MATCHES "^8$")
set(ARCH_BITS 64)
if(${SIZEOF_VOID_PTR} MATCHES "^4$")
set(ARCH_32BITS 1)
else()
set(ARCH_BITS 32)
set(ARCH_64BITS 1)
endif()
# detect the compiler and its version