Functions for dumping list of targets and properties
If eg. after a find_package() I want to know what are now the available targets, there is so far to my knowledge no other way than digging through piles of code, and you need a lot of expertise to even find any clue about what you are having now!
But if I write then a target_link_library(..), the interpreter will immediately tell me whether a target is unknown. It will only not tell me in advance which ones would be known in that place!
And why should I not also be able to dig even deeper and see which include paths, libraries, special build options etc. are related to any given target - imported or not.
In other words: I can always test if a specific target, property, variable etc. is defined or not, but I don't know of any way to ask the other way round: "what is now available". At least nobody on the mailing list could tell me of any hidden way to even indirectly come to such a list.
But this would definitely be a huge help for easier debugging of cmake code, so I am posting this as a feature request issue!