I've fixed this upstream, so we probably should either backport the patch or sed it out. Opening a bug so that we do that if we decide to apply cmake-utils patch from #542530.
cmake-utils was fixed another way, so no need to worry about this one.