[Libstreams] 695554f Specify the full path in LIBSTREAMS_LIBRARIES.

Yury G. Kudryashov urkud at ya.ru
Wed Jan 12 12:11:06 CET 2011


Alexander Neundorf wrote:

> Uh, that doesn't look too good, it hardcodes the "lib" prefix and the
> ".so" suffix. Does that work on Windows ? OSX ?
> 
> How can it be done better:
> 1.) use exported targets, then this is done automatically. For this the
> targets have to be put into an "export set" (using the EXPORT argument of
> install(TARGET...)), and then this export set has to be installed (using
> install(EXPORT...) ). The installed export-file can then be included by
> the installed LibStreamsConfig.cmake.
I'm working on a patch using this approach. I'm busy till week-end but I 
will post it just after week-end.
> 
> or
> 2.) use something like
> find_library(LIBSTREAMS_LIBRARIES NAMES streams
>                                   HINTS ${LIBSTREAMS_LIBRARY_DIRS}
>                                   NO_DEFAULT_PATH)
> in the installed LibStreamsConfig.cmake



More information about the Kde-buildsystem mailing list