aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
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}