From f4ec59c58b550bf314c75cea38a18d2538404601 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 17 Aug 2009 16:44:13 +0000 Subject: Use -o rather than > so that we don't get an empty file on error (e.g. "qdbuscpp2xml: could not execute moc") (empty file which itself will lead to a different error message next time) Can this be merged into cmake's FindQt4.cmake? Thanks. CCMAIL: kde-buildsystem@kde.org svn path=/trunk/KDE/kdelibs/; revision=1012421 --- modules/FindQt4.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/FindQt4.cmake b/modules/FindQt4.cmake index 3506a548..3ed05c06 100644 --- a/modules/FindQt4.cmake +++ b/modules/FindQt4.cmake @@ -1335,7 +1335,7 @@ IF (QT4_QMAKE_FOUND) ENDIF (_customName) ADD_CUSTOM_COMMAND(OUTPUT ${_target} - COMMAND ${QT_DBUSCPP2XML_EXECUTABLE} ${_qt4_dbus_options} ${_in_file} > ${_target} + COMMAND ${QT_DBUSCPP2XML_EXECUTABLE} ${_qt4_dbus_options} ${_in_file} -o ${_target} DEPENDS ${_in_file} ) ENDMACRO(QT4_GENERATE_DBUS_INTERFACE) -- cgit v1.2.1