QT_INSTALL_DIR, KDELibsDependencies.cmake and flexible install location of Qt

Alexander Neundorf neundorf at kde.org
Sat Jan 2 19:12:43 CET 2010


On Saturday 02 January 2010, Patrick Spendrin wrote:
> Ok, I tested the second patch and everything is set correctly; so I
> checked what went wrong, and it seems that according to the cmake docs
> the IMPORTED_LOCATION property of the imported target is requires the
> location of the dll on dll platforms. Since the find_library call
> returns the import library instead though, changing the call
> add_library(Qt4__${basename} SHARED IMPORTED) to
> add_library(Qt4__${basename} UNKNOWN IMPORTED) or STATIC works far

Hmm, I have to think about that how that works together with the linker flags 
etc...

> better (I guess it assumes that the .lib file is the static version
> then) but as far as I understand, this is slightly wrong as the import
> version is *not* the static version of the library. I am not sure if
> this can make any difference for cmake, since it shouldn't care for that.
>
>
> For completeness:

Thanks :-)
Can you please also send me your KDELibs4Dependencies-<config>.cmake file ?

Alex


More information about the Kde-windows mailing list