QT_${basename}_LIBRARY

Alexander Neundorf neundorf at kde.org
Thu May 18 17:18:06 CEST 2006


On Thursday 18 May 2006 17:12, Peter Kümmel wrote:
> Alexander Neundorf wrote:
> > On Thursday 18 May 2006 15:53, you wrote:
> >> Is there any reason why in FindQt4.cmake originally the
> >> QT_${basename}_LIBRARY variable is not set with the
> >> optimized/debug specifiers, like the
> >> QT_${basename}_LIBRARIES  variable?
> >
> > Mainly because for a long time it was quite unclear which behaviour we
> > want/need.
> > And you have to make sure it still works good enough if only one of the
> > two libs has been found.
> > I.e. if the debug version hasn't been found you can't set it to
> > SET(QT_QTCORE_LIBRARY optimized libQtCore.so debug)
> > This will break.
> >
> > Bye
> > Alex
>
> Fine,
> both cases (release or debug only) are handled before:
>
>       # if only the release version was found, set the debug variable also
> to the release version ...
>       # if only the debug version was found, set the release variable also
> to the debug version

...and under Linux and FreeBSD we don't want to link to the Qt debug libs, not 
sure about OS X, also not sure about mingw.
And AFAIK we need a different debug postfix for msvc, but not for the others. 
And then it has to be ensured that also the exported dependencies work.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list