summaryrefslogtreecommitdiffstats
path: root/Modules/Qt4Macros.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-04 15:38:02 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-04-04 15:38:02 (GMT)
commit1dc59debcc52d86955c235b4d486bd4dfff24299 (patch)
treede00bfb5849d6c65942062355f3629d64e35e2ee /Modules/Qt4Macros.cmake
parent84487e91597c9a07e877251d09aa075133327088 (diff)
parent7beba98652212c7a44f291b51dd03681e5193c49 (diff)
downloadCMake-1dc59debcc52d86955c235b4d486bd4dfff24299.zip
CMake-1dc59debcc52d86955c235b4d486bd4dfff24299.tar.gz
CMake-1dc59debcc52d86955c235b4d486bd4dfff24299.tar.bz2
Merge topic 'Qt4Macros-moc-performance'
7beba986 Qt4Macros: Make QT4_CREATE_MOC_COMMAND a function
Diffstat (limited to 'Modules/Qt4Macros.cmake')
-rw-r--r--Modules/Qt4Macros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Qt4Macros.cmake b/Modules/Qt4Macros.cmake
index aca8996..23c4fc0 100644
--- a/Modules/Qt4Macros.cmake
+++ b/Modules/Qt4Macros.cmake
@@ -103,7 +103,7 @@ endmacro()
# helper macro to set up a moc rule
-macro (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options moc_target)
+function (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options moc_target)
# For Windows, create a parameters file to work around command line length limit
# Pass the parameters in a file. Set the working directory to
# be that containing the parameters file and reference it by
@@ -144,7 +144,7 @@ macro (QT4_CREATE_MOC_COMMAND infile outfile moc_flags moc_options moc_target)
DEPENDS ${infile} ${_moc_parameters_file}
${_moc_working_dir}
VERBATIM)
-endmacro ()
+endfunction ()
macro (QT4_GENERATE_MOC infile outfile )