SDL: cmake: don't generate SDL3 jar for CMake versions < 3.19

From c7205ab6b511a8f60eb8d1c33d3e80e9e2affd3a Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 15 May 2024 18:31:37 +0200
Subject: [PATCH] cmake: don't generate SDL3 jar for CMake versions < 3.19

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8166c49663bd1..077b3ad2cb82e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1395,7 +1395,7 @@ if(ANDROID)
     find_package(Java)
     find_package(SdlAndroidPlatform MODULE)
 
-    if(Java_FOUND AND SdlAndroidPlatform_FOUND)
+    if(Java_FOUND AND SdlAndroidPlatform_FOUND AND NOT CMAKE_VERSION VERSION_LESS "3.19")
       include(UseJava)
       set(path_android_jar "${SDL_ANDROID_PLATFORM_ROOT}/android.jar")
       set(android_java_sources_root "${SDL3_SOURCE_DIR}/android-project/app/src/main/java")