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

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Wed Jan 16 18:57:18 CET 2008


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.



HTH
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/ddd26be3/attachment.pgp 


More information about the Kde-windows mailing list