emulators/cannonball: Add compatibility for CMake 4
PR: 297913 Tested by: Gleb Popov <arrowd@FreeBSD.org>