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

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Jan 16 20:10:26 CET 2008


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.


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20080116/2218cad1/attachment.pgp 


More information about the Kde-windows mailing list