summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2011-12-19 22:30:50 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-21 19:58:14 +0100
commit9c6736470881efb9977576fd8c17bbb90f40a21d (patch)
tree8b04392ec2ab66c524175f9a44377fc15cff1227 /src/widgets
parent8c207a46e690fb6d18a62ea2bd99ea2f91e14909 (diff)
Convert macros to functions.
Change-Id: I43f4188d1c33cd5a07eb7a12bf3343af7e6a211f Reviewed-by: Alexander Neundorf <neundorf@kde.org> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/Qt5WidgetsMacros.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets/Qt5WidgetsMacros.cmake b/src/widgets/Qt5WidgetsMacros.cmake
index ac13141cfc..88f259191e 100644
--- a/src/widgets/Qt5WidgetsMacros.cmake
+++ b/src/widgets/Qt5WidgetsMacros.cmake
@@ -41,7 +41,7 @@ include(CMakeParseArguments)
# qt5_wrap_ui(outfiles inputfile ... )
-macro(QT5_WRAP_UI outfiles )
+function(QT5_WRAP_UI outfiles )
set(options)
set(oneValueArgs)
set(multiValueArgs OPTIONS)
@@ -61,4 +61,5 @@ macro(QT5_WRAP_UI outfiles )
MAIN_DEPENDENCY ${infile} VERBATIM)
list(APPEND ${outfiles} ${outfile})
endforeach()
-endmacro()
+ set(${outfiles} ${${outfiles}} PARENT_SCOPE)
+endfunction()