From de9ea2a750af710b40d9184c22d14fdc8ff90dd8 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Mon, 3 Feb 2014 21:57:27 -0700 Subject: [PATCH] CMake: For Interrogate 64/32-bit detection, check sizeof(long) rather than sizeof(void*). --- cmake/macros/Interrogate.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/macros/Interrogate.cmake b/cmake/macros/Interrogate.cmake index 20e10282cc..3d9d7d3386 100644 --- a/cmake/macros/Interrogate.cmake +++ b/cmake/macros/Interrogate.cmake @@ -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()