How to print location of Qt5 component library?

Fails with generator expression $<CONFIG>, but with literal RELEASE it does work under Linux and Windows.