Hi, thanks - while you were writing this I've uploaded a temporary fix (or attempt for it) by setting JAVA_JVM_LIBRARY manually on architectures that don't have the hotspot jvm but just the zero jvm.
I've opened a bug with the link to your patch to cmake, hopefully the cmake debian maintainer will cherry-pick it asap. Regards, Daniel