SDL_image: libtiff: bump vendored libtiff to 4.5.1

From c94d6ef29f7725319c8246450f4f6bc5fc8d6272 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Tue, 1 Aug 2023 19:15:55 +0200
Subject: [PATCH] libtiff: bump vendored libtiff to 4.5.1

---
 .gitmodules      | 2 +-
 CMakeLists.txt   | 2 ++
 external/libtiff | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index d96a0b71..13007662 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -17,7 +17,7 @@
 [submodule "external/libtiff"]
 	path = external/libtiff
 	url = https://github.com/libsdl-org/libtiff.git
-	branch = v4.2.0-SDL
+	branch = v4.5.1-SDL
 [submodule "external/zlib"]
 	path = external/zlib
 	url = https://github.com/libsdl-org/zlib.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbcf859a..a0b20e66 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -583,6 +583,8 @@ if(SDL3IMAGE_TIF)
     target_compile_definitions(${sdl3_image_target_name} PRIVATE LOAD_TIF)
     if(SDL3IMAGE_TIF_VENDORED)
         message(STATUS "${PROJECT_NAME}: Using vendored libtiff")
+        # tiff-tests variable is used by vendored libtiff
+        set(tiff-tests OFF CACHE BOOL "libtiff: tests" FORCE)
         # jpeg variable is used by vendored libtiff
         set(jpeg OFF CACHE BOOL "libtiff: jpeg option" FORCE)
         # libdeflate variable is used by vendored libtiff
diff --git a/external/libtiff b/external/libtiff
index dad25b3f..be64b4f0 160000
--- a/external/libtiff
+++ b/external/libtiff
@@ -1 +1 @@
-Subproject commit dad25b3f71cfd7f4fcb089a5881a31e65ae92c0a
+Subproject commit be64b4f0784235ad164c23331a4e72e332488d50