From dc1eef279e3b34f5e978e2e07a80969b07a112e8 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 31 Aug 2010 16:26:15 -0300 Subject: [PATCH] Fix Qt class detection on Windows. --- PySide/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt index d5368e3..4c01795 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 \n" - "#include \n" - "int main() { return (intptr_t) &typeid(${class}); }\n" + "int main() { typeid(${class}); }\n" ) try_compile(Q_WORKS ${CMAKE_BINARY_DIR} ${SRC_FILE}