From 238e053ff4d6073e8cbe847bb8a4fed9bedd2505 Mon Sep 17 00:00:00 2001 From: Matthias Kretz Date: Thu, 5 Jul 2007 09:58:38 +0000 Subject: show message only in verbose mode svn path=/trunk/KDE/kdelibs/; revision=683791 --- modules/kde4automoc.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/kde4automoc.cmake b/modules/kde4automoc.cmake index d57f760d..718a47a4 100644 --- a/modules/kde4automoc.cmake +++ b/modules/kde4automoc.cmake @@ -76,7 +76,9 @@ foreach(_filename ${MOC_FILES}) set(_current_MOC "moc_${_basename}.cpp") generate_moc(${_filename} ${_current_MOC}) else (".h" STREQUAL "${_suffix}" OR ".hpp" STREQUAL "${_suffix}" OR ".hxx" STREQUAL "${_suffix}" OR ".H" STREQUAL "${_suffix}") - message(STATUS "Automoc: ignoring file '${_filename}' with unknown suffix '${_suffix}'") + if($ENV{VERBOSE}) + message(STATUS "Automoc: ignoring file '${_filename}' with unknown suffix '${_suffix}'") + endif($ENV{VERBOSE}) endif (".h" STREQUAL "${_suffix}" OR ".hpp" STREQUAL "${_suffix}" OR ".hxx" STREQUAL "${_suffix}" OR ".H" STREQUAL "${_suffix}") endif (".cpp" STREQUAL "${_suffix}" OR ".cc" STREQUAL "${_suffix}" OR ".cxx" STREQUAL "${_suffix}" OR ".C" STREQUAL "${_suffix}") endif ("${_filename}" IS_NEWER_THAN "${MARK_FILE}" OR "${_moc_source}" IS_NEWER_THAN "${MARK_FILE}") -- cgit v1.2.1