cmake EXEC_PROGRAM merges stdout and stderr?

David Faure faure at kde.org
Fri Feb 3 13:38:10 CET 2006


Compiling kdeui I get
kshortcutdialog_simple.h:11: error: invalid function declaration
because of this in the .h file:
"
class KShortcut;

Warning: name KShortcutDialogSimple is already used
#include <QtCore/QVariant>
#include <QtGui/QAction>
"

This warning line should obviously not be there. It's a warning by uic3, send to stderr.

The uic3 command issued by cmake is:
cd /devel/kde/build/4/kdelibs4_cmake/kdeui && /devel/other/inst/bin/cmake -DKDE3_HEADER:BOOL=ON -DKDE_UIC_EXECUTABLE:FILEPATH=/devel/kde/src/4/qt-copy/bin/uic3 -DKDE_UIC_FILE:FILEPATH=/devel/kde/src/4/kdelibs/kdeui/kshortcutdialog_simple.ui3 -DKDE_UIC_H_FILE:FILEPATH=/devel/kde/build/4/kdelibs4_cmake/kdeui/kshortcutdialog_simple.h -DKDE_UIC_BASENAME:STRING=kshortcutdialog_simple -DKDE_UIC_PLUGIN_DIR:FILEPATH="." -P /devel/kde/src/4/kdelibs/cmake/modules/kde4uic.cmake
Running cmake script file /devel/kde/src/4/kdelibs/cmake/modules/kde4uic.cmake

After adding debug output to cmake's cmExecProgramCommand.cxx (wow, nice, it's c++, no c as I thought I heard),
I see:
Executing command "/devel/kde/src/4/qt-copy/bin/uic3 -nounload -tr tr2i18n /devel/kde/src/4/kdelibs/kdeui/kshortcutdialog_simple.ui3"
which is correct, but what does cmake do with its stdout and stderr?
I see callbacks in cmSystemTools but I don't see one being set.... Any ideas?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).



More information about the Kde-buildsystem mailing list