[cmake-developers] [Patch] FindPkgConfig: optionally create imported target for the found libraries
Rolf Eike Beer
eike at sf-mail.de
Thu May 12 12:48:42 EDT 2016
Am Donnerstag, 12. Mai 2016, 09:53:06 schrieb Brad King:
> On 05/12/2016 09:34 AM, Rolf Eike Beer wrote:
> > find_library(${_prefix}-${CMAKE_MATCH_1}
> >
> > NAMES ${CMAKE_MATCH_1}
> > ${_find_opts})
> >
> > list(APPEND _libs "${${_prefix}-${CMAKE_MATCH_1}}")
>
> Generally I try to store the CMAKE_MATCH_ values in other variables
> as soon as possible and then use those other variables. Otherwise
> refactoring may cause their values to change and break existing logic.
Good point. I have changed this accordingly and pushed it to next. There are
no tests yet, so maybe not immediately merge it to next but wait for the
weekend or so.
Greetings,
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160512/954673ad/attachment.sig>
More information about the cmake-developers
mailing list