CMakePackageConfigHelpers: Use unique variable name for pkg prefix

Fixes: #25827
6 files changed