[cmake-developers] FindPkgConfig and IMPORTED_TARGET in 3.6.0

Rolf Eike Beer eike at sf-mail.de
Sun Jun 19 03:36:26 EDT 2016


Am Samstag, 18. Juni 2016, 14:41:34 schrieb Rolf Eike Beer:
> Ben Boeckel wrote:
> > Hi,
> > 
> > Nils, the IMPORTED_TARGET feature in pkg_check_modules is nice! Thanks
> > for that. However, it is hidden behind the check that pkg_check_modules
> > 
> > uses to see if it already ran:
> >     if (NOT DEFINED __pkg_config_checked_${_prefix} OR
> >     
> >         __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR
> >         NOT ${_prefix}_FOUND)
> > 
> > which means that on the second configure, the target is not created
> > causing build faiures. Could you please look at reordering the logic so
> > that the imported target is always created (if requested)? Thanks.
> > 
> > Brad, this is in the rc releases; what should be done? Block the
> > release, undocument the feature, or wait for a patch?
> 
> Please check if
> https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3213b747a84a4e584e9edc6b
> d8c114b809b18bec fixes it for you.

Version without stupid typo:

https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8345c6463d813fb39ee6a6dee5259ee18525c62c
-------------- 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/20160619/eaffa49a/attachment.sig>


More information about the cmake-developers mailing list