CMake: For Interrogate 64/32-bit detection, check sizeof(long) rather than sizeof(void*).

This commit is contained in:
Sam Edwards 2014-02-03 21:57:27 -07:00
parent eced41b7c3
commit de9ea2a750
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@
set(IGATE_FLAGS -DCPPPARSER -D__cplusplus -Dvolatile -Dmutable -python-native)
# In addition, Interrogate needs to know if this is a 64-bit build:
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
include(CheckTypeSize)
check_type_size(long CMAKE_SIZEOF_LONG)
if(CMAKE_SIZEOF_LONG EQUAL 8)
list(APPEND IGATE_FLAGS "-D_LP64")
endif()