[CMake] Editing IMPORTED targets

Ivan Shapovalov intelfx at intelfx.name
Mon Sep 26 00:09:48 EDT 2016


Hello!

Using find modules to detect dependencies has a nice feature: it is
then possible to edit the resulting cache entries to link to different
libraries (or add other libraries along the found ones, for whatever
purposes), or change directories, or flags, or whatever.

Using find configs and IMPORTED targets, however, prevents doing this,
because IMPORTED targets are not stored in CMake cache. This can be a
significant disadvantage at times.

So: is there any workaround/hidden feature to edit IMPORTED targets?
Or is such a feature planned?

Thanks,
-- 
Ivan Shapovalov / intelfx /
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160926/3c195d70/attachment.sig>


More information about the CMake mailing list