cmake: Fix compatibility in package version file See https://github.com/microsoft/vcpkg/issues/42315