libtiff: Merge branch 'master' into 'master' (47e61)

From eed69b50e71b3f64359e6f9dcd16e22ec2ff37ce Mon Sep 17 00:00:00 2001
From: Frei Herr <[EMAIL REDACTED]>
Date: Fri, 7 Oct 2022 11:26:41 +0000
Subject: [PATCH] Moved linking of CMath::CMath into CMath_LIBRARY check

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

diff --git a/libtiff/CMakeLists.txt b/libtiff/CMakeLists.txt
index 346c2f0d..b4a15027 100755
--- a/libtiff/CMakeLists.txt
+++ b/libtiff/CMakeLists.txt
@@ -149,8 +149,8 @@ if(WEBP_SUPPORT)
   target_link_libraries(tiff PRIVATE WebP::WebP)
   string(APPEND tiff_requires_private " libwebp")
 endif()
-target_link_libraries(tiff PRIVATE CMath::CMath)
 if(CMath_LIBRARY)
+  target_link_libraries(tiff PRIVATE CMath::CMath)
   list(APPEND tiff_libs_private_list "${CMath_LIBRARY}")
 endif()