PkgConfig::<prefix> targets don't respect the value of BUILD_SHARED_LIBS
The targets defined after calls to pkg_check_modules
have their INTERFACE_LINK_LIBRARIES
populated from ${_prefix}_LINK_LIBRARIES
. If the pkg-config file contains a non-empty Requires.private
field that property is incorrect for static builds.
There are of course various ways to work around that but all of those induce overhead on the user.
It would be nice if the definition of _pkg_create_imp_target
could be extended to respect BUILD_SHARED_LIBS
.