Why does FindQt4.cmake add a link dependency of QtScript to QtUiTools?

Andreas Pakulat apaku at gmx.de
Wed Jun 20 17:40:28 BST 2007


On 20.06.07 18:15:03, Thiago Macieira wrote:
> Richard Dale wrote:
> >I found my library had an unexpected link dependency on QtScript even
> > though there was no mention of QtScript in the CMakeLists.txt file.
> > After investigating a bit I found these lines in FindQt.cmake:
> >
> >  IF(QT_QTSCRIPT_LIBRARY AND QT_QTUITOOLS_LIBRARY)
> >    SET(QT_QTUITOOLS_LIBRARY ${QT_QTUITOOLS_LIBRARY}
> > ${QT_QTSCRIPT_LIBRARY} ) ENDIF(QT_QTSCRIPT_LIBRARY AND
> > QT_QTUITOOLS_LIBRARY)
> >
> >WTF? I've no idea what problem this is trying to solve as there is no
> > comment against it. But it just seems plain wrong to me and should be
> > removed.
> 
> Unfortunately, it's required. QtUiTools depends on QtScript. It's an 
> indirect dependency.

Hmm, which of its dependecies depends on QtScript? I mean the uilib that
QtUiTools use only adds QtScript when QT_FORMBUILDER_NO_SCRIPT is not
defined and QtUiTools' .pro file explicitly defines this variable. So
I think it might be a Qt bug if QtUiTools indirectly depends on QtScript
through some other Qt library.

Andreas

-- 
It's all in the mind, ya know.




More information about the kde-core-devel mailing list