From c9dd530e71173a5c3673f9184495cbe8a30c9ce4 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Thu, 10 Feb 2011 20:16:58 -0200 Subject: Fix phonon compilation and detection of VideoCaptureDevice class. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Lauro Moura Renato Araújo --- cmake/Macros/PySideModules.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cmake/Macros/PySideModules.cmake') diff --git a/cmake/Macros/PySideModules.cmake b/cmake/Macros/PySideModules.cmake index 516201c0d..07c118c8d 100644 --- a/cmake/Macros/PySideModules.cmake +++ b/cmake/Macros/PySideModules.cmake @@ -63,15 +63,15 @@ endmacro() #macro(check_qt_class_with_namespace module namespace class global_sources commom_xml class_xml [namespace] [module]) macro(check_qt_class module class global_sources commom_xml) if (${ARGC} GREATER 4) - set (namespace ${ARGV3}) + set (namespace ${ARGV4}) string(TOLOWER ${namespace} _namespace) else () set (namespace "") endif () if (${ARGC} GREATER 5) - set (include_file ${ARGV4}) + set (include_file ${ARGV5}) else () - set (include_file ${module}) + set (include_file ${class}) endif () string(TOLOWER ${class} _class) string(TOUPPER ${module} _module) @@ -93,9 +93,8 @@ macro(check_qt_class module class global_sources commom_xml) set(SRC_FILE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/test${class}.cxx) file(WRITE ${SRC_FILE} "#include <${include_file}>\n" - "#include \n" "${NAMESPACE_USE}\n" - "int main() { typeid(${class}); }\n" + "int main() { sizeof(${class}); }\n" ) try_compile(Q_WORKS ${CMAKE_BINARY_DIR} ${SRC_FILE} -- cgit v1.2.3