aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2010-08-26 15:10:12 -0400
committerAnderson Lizardo <anderson.lizardo@openbossa.org>2010-08-26 15:30:07 -0400
commitc25215106caf093a02443059817f5ceb86457254 (patch)
tree424fb5be22f7bedb2d0cede2e66cbe03952da79c /PySide
parent653261e047871ae64d4e3bb97b7b24d05df06db3 (diff)
Fix class checking for 64-bits
Reviewed-by: Lauro Neto <lauro.neto@openbossa.org> Reviewed-by: Bruno dos Santos de Araujo <bruno.araujo@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r--PySide/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
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 <typeinfo>\n"
- "int main() { return (int) &typeid(${class}); }\n"
+ "#include <inttypes.h>\n"
+ "int main() { return (intptr_t) &typeid(${class}); }\n"
)
try_compile(Q_WORKS ${CMAKE_BINARY_DIR}
${SRC_FILE}