aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/kde4automoc.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/kde4automoc.cmake b/modules/kde4automoc.cmake
index 35da4496..d57f760d 100644
--- a/modules/kde4automoc.cmake
+++ b/modules/kde4automoc.cmake
@@ -10,7 +10,11 @@ macro (generate_moc _moc_source _current_MOC)
set(_moc ${KDE4_CURRENT_BINARY_DIR}/${_current_MOC})
if ("${_moc_source}" IS_NEWER_THAN "${_moc}" OR _force_moc)
- message(STATUS "Automoc: Generating ${_moc} from ${_moc_source}")
+ if($ENV{VERBOSE})
+ message(STATUS "Automoc: Generating ${_moc} from ${_moc_source}")
+ else($ENV{VERBOSE})
+ message(STATUS "Generating ${_current_MOC}")
+ endif($ENV{VERBOSE})
execute_process(COMMAND ${QT_MOC_EXECUTABLE} ${QT_MOC_INCS} "${_moc_source}" -o "${_moc}")
endif ("${_moc_source}" IS_NEWER_THAN "${_moc}" OR _force_moc)
endmacro (generate_moc)