Update TARGET_NAME_IF_EXISTS generator expression to allow alias targets
Hi CMake developers,
I'm struggling with a special situation where I would like to link a library B
to a library A
. Library B
might be available or not (it depends on the user of my component) and it is an alias target. The generator expression TARGET_NAME_IF_EXISTS
fits perfect for my purpose. Unfortunately it is not able to handle alias targets.
It is possible to add this feature?
Many thanks and best regards,
Markus