aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2009-08-17 16:44:13 +0000
committerDavid Faure <faure@kde.org>2009-08-17 16:44:13 +0000
commitf4ec59c58b550bf314c75cea38a18d2538404601 (patch)
tree1a3c9811342648475b1a6eb31ca3e96c61e2798c
parent8b88d351ff98ef6d04cfc0042bb7276412bfb6ef (diff)
downloadextra-cmake-modules-f4ec59c58b550bf314c75cea38a18d2538404601.tar.gz
extra-cmake-modules-f4ec59c58b550bf314c75cea38a18d2538404601.tar.bz2
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
-rw-r--r--modules/FindQt4.cmake2
1 files changed, 1 insertions, 1 deletions
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)