update check in generated pkgConfig.cmake files to work independent of cmake policy CMD0012 (#452)