(msvc2k5, emerge) optimized; prefix for QT_${basename}_LIBRARY

Andreas Pakulat apaku at gmx.de
Wed Jan 16 20:32:20 CET 2008


On 16.01.08 20:10:26, Christian Ehrlicher wrote:
> Andreas Pakulat schrieb:
> > On 16.01.08 19:46:50, Jarosław Staniek wrote:
> >> Christian Ehrlicher said the following, On 2008-01-16 18:57:
> >>> Jarosław Staniek schrieb:
> >>>> Hello,
> >>>> I guess Christian knows something about it [1]:
> >>>>
> >>>> We have the following line in kdelibs/cmake/modules/FindQt.cmake:807:
> >>>> IF (QT_${basename}_LIBRARY_RELEASE AND QT_${basename}_LIBRARY_DEBUG)
> >>>>   SET(QT_${basename}_LIBRARY optimized {QT_${basename}_LIBRARY_RELEASE} debug 
> >>>> ${QT_${basename}_LIBRARY_DEBUG})
> >>>> ENDIF (QT_${basename}_LIBRARY_RELEASE AND QT_${basename}_LIBRARY_DEBUG)
> >>>>
> >>>> This sets all qt-library-related variables like QT_QTNETWORK_LIBRARY for 
> >>>> msvc+release-with-debug-info builds to something strange:
> >>>>
> >>>> optimized;C:/kde4/lib/QtNetwork4.lib;debug;C:/kde4/lib/QtNetworkd4.lib
> >>>>
> >>>> What is the 'optimized' part of this list? It is translated by cmake to 
> >>>> optimized.lib so we got isses like the following:
> >>>>
> >>> There's nothing strange about this - it's the way it has to be. akonadi
> >>> CMakeLists.txt is wrong:
> >>>
> >>> target_link_libraries( akonadi_bin akonadi ${QT_QTCORE_LIBRARIES} )
> >>> QT_foo_LIBRARIES must not be used.
> >>>
> >>> -->
> >>> target_link_libraries( akonadi_bin akonadi ${QT_QTCORE_LIBRARY} )
> >>> will work fine.
> >> Thanks, I will add this as a techbase note.
> > 
> > I wonder how this built anyway, there's no QT_QTCORE_LIBRARIES variable
> > at all anywhere in FindQt4.cmake or FindKDE4Internal. So I suspect
> > akonadi created that variable itself, in the wrong way obviously.
> > 
> > Or does cmake generate that variable internally? If so that would be
> > quite unfortunate.
> > 
> QT_foo_LIBRARIES is somehow used by UseQt4.cmake - don't know more about
> this.

They're not, unless I'm really blind. At least not in cmake 2.4's
UseQt4.cmake.

Andreas

-- 
Live in a world of your own, but always welcome visitors.



More information about the Kde-windows mailing list