find_package and build configuration

Hi,

Out of curiosity, how does find_package selects the right configuration?

if I have a target in “Debug” it imports the dependencies in “Debug”, dito in “Release”.

What’s the behaviour with custom configurations?

What’s the behaviour if the dependency has no configuration with the same name as the target?

Thanks,
A.

There is the MAP_IMPORTED_CONFIG_<CONFIG> property for this. I’m not sure if/where the fallback algorithm is documented off hand though.

Thanks for the pointer,

Regards,
A.