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

Jarosław Staniek js at iidea.pl
Wed Jan 16 19:46:50 CET 2008


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.

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)



More information about the Kde-windows mailing list