From c25215106caf093a02443059817f5ceb86457254 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Thu, 26 Aug 2010 15:10:12 -0400 Subject: Fix class checking for 64-bits Reviewed-by: Lauro Neto Reviewed-by: Bruno dos Santos de Araujo --- PySide/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'PySide') diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt index 05dd4ffe1..cce0f4ced 100644 --- a/PySide/CMakeLists.txt +++ b/PySide/CMakeLists.txt @@ -64,7 +64,8 @@ macro(check_qt_class module class global_sources) file(WRITE ${SRC_FILE} "#include <${module}>\n" "#include \n" - "int main() { return (int) &typeid(${class}); }\n" + "#include \n" + "int main() { return (intptr_t) &typeid(${class}); }\n" ) try_compile(Q_WORKS ${CMAKE_BINARY_DIR} ${SRC_FILE} -- cgit v1.2.3