Add new target property FROM_PACKAGE to (imported) targets created within a find_package call
If a (imported) target is created within a find_package
call it would be very usefull to know which find_package
call created it.
As such I propose a new target read_only property FROM_PACKAGE
or similar to make this information avaiable. (Maybe also FROM_PACKAGE_FULL_SIGNATURE
to get everything which was passed to find_package
)
Alternativley a list of (imported) targets created by find_package
could be used in the same way by writting a similar property to the targets on your own.
Basically, I need a bit more introspection into a running configure then is currently offered by cmake.
(Automatic -config.cmake
generation or .pc
file generation)