diff --git a/libtiff/CMakeLists.txt b/libtiff/CMakeLists.txt
index 346c2f0d478d4fa4d9e13d8276ff82808227ce25..b4a150273f36770d1dc034fa654b70d055bdc9ff 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()