From 5a6485da3a43401ddde9c5df840867c4e1a3adc0 Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Fri, 19 Jun 2026 22:47:36 +0200 Subject: [PATCH] cmake: use upstream libtiff (gitlab) at v4.7.1 Switch the libtiff FetchContent from the personal GitHub mirror to the upstream gitlab repo and bump v4.6.0 -> v4.7.1 -- cleaner provenance; the mirror was only ever a network-reachability workaround. Verified on Linux: fetches, builds static (libtiff.a/libtiffxx.a), and jfjoch_viewer links cleanly. Co-Authored-By: Claude Opus 4.8 --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14e95f43..cffdedb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,8 +167,7 @@ ENDIF() # libtiff (used by JFJochPreview in every build mode): build it ourselves. Its C++ binding # (tiffxx) is packaged inconsistently across distros (missing on Rocky 9) and absent on -# Windows. Library only; the SET()s below are libtiff's own codec/tool switches. The GitHub -# mirror is used because upstream (gitlab) is unreachable from some restricted build hosts. +# Windows. Library only; the SET()s below are libtiff's own codec/tool switches. SET(jbig OFF) SET(zstd OFF) SET(lzma OFF) @@ -177,8 +176,8 @@ SET(old-jpeg OFF) SET(tiff-tools OFF) SET(tiff-tests OFF) FetchContent_Declare(tiff - GIT_REPOSITORY https://github.com/fleon-psi/libtiff - GIT_TAG v4.6.0 + GIT_REPOSITORY https://gitlab.com/libtiff/libtiff.git + GIT_TAG v4.7.1 EXCLUDE_FROM_ALL) FetchContent_MakeAvailable(tiff)