aboutsummaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-31 16:26:15 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-31 16:36:19 -0300
commitdc1eef279e3b34f5e978e2e07a80969b07a112e8 (patch)
treed774979168a82fae1af227d3f2707858a2e0725e /PySide
parent28000755c2913851a3c7c339a8eabe6ece450c30 (diff)
Fix Qt class detection on Windows.
Diffstat (limited to 'PySide')
-rw-r--r--PySide/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt
index d5368e338..4c017953a 100644
--- a/PySide/CMakeLists.txt
+++ b/PySide/CMakeLists.txt
@@ -65,8 +65,7 @@ macro(check_qt_class module class global_sources)
file(WRITE ${SRC_FILE}
"#include <${module}>\n"
"#include <typeinfo>\n"
- "#include <inttypes.h>\n"
- "int main() { return (intptr_t) &typeid(${class}); }\n"
+ "int main() { typeid(${class}); }\n"
)
try_compile(Q_WORKS ${CMAKE_BINARY_DIR}
${SRC_FILE}