From 88c38236d4cbbbcff1fa4f0e34b6249796a370c7 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Wed, 9 Feb 2011 12:26:23 -0300 Subject: Fix append object description on typesystem only when this was found. Reviewer: Marcelo Lira Hugo Parente Lima --- cmake/Macros/PySideModules.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Macros/PySideModules.cmake b/cmake/Macros/PySideModules.cmake index 4476eb4..9739bc4 100644 --- a/cmake/Macros/PySideModules.cmake +++ b/cmake/Macros/PySideModules.cmake @@ -73,7 +73,6 @@ macro(check_qt_class module class global_sources commom_xml) else () set (include_file ${module}) endif () - append_class_xml(${commom_xml} "${CMAKE_CURRENT_SOURCE_DIR}/optional/${class}.xml") string(TOLOWER ${class} _class) string(TOUPPER ${module} _module) if (_namespace) @@ -111,6 +110,7 @@ macro(check_qt_class module class global_sources commom_xml) if(Q_WORKS) message(STATUS "Checking for ${class} in ${module} -- found") list(APPEND ${global_sources} ${_cppfile}) + append_class_xml(${commom_xml} "${CMAKE_CURRENT_SOURCE_DIR}/optional/${class}.xml") else() message(STATUS "Checking for ${class} in ${module} -- not found") endif() -- cgit