Repository navigation
COMP: Require libtiff 4.0.3 when ITK_USE_SYSTEM_TIFF is ON - #7270
Merged
hjmjohnson merged 1 commit intoNov 30, 2026
Merged
hjmjohnson merged 1 commit into
hjmjohnson merged 1 commit into
Conversation
TIFFImageIO has needed libtiff 4.0.3 or later since 40f5c4d, and after InsightSoftwareConsortium#7240 it has no fallback for older versions, but find_package(TIFF) asked for no version. An older system libtiff was accepted at configure time and failed only when TIFFImageIO compiled. The build and both exported find_package(TIFF) calls now ask for 4.0.3, so an older libtiff stops configuration with FindTIFF's "Found unsuitable version" message, and so do projects that use the installed ITK. Requested by blowekamp in review of InsightSoftwareConsortium#7240.
hjmjohnson
marked this pull request as ready for review
November 30, 2026 16:30
Contributor
[Medium impact] The PR appears safe to merge.
|
dzenanz
approved these changes
Nov 30, 2026
hjmjohnson
merged commit Nov 30, 2026
2b45cfa
into
InsightSoftwareConsortium:main
15 of 18 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
ITK_USE_SYSTEM_TIFF=ON, require libtiff 4.0.3 infind_package(TIFF), so an older system libtiff stops configuration instead of failing to compile inTIFFImageIO. Follow-up requested by @blowekamp in review of #7240.Merge danger: two-way door; blast radius: builds with
ITK_USE_SYSTEM_TIFF=ONagainst a libtiff older than 4.0.3, and projects using such an installed ITK.Shape of the change
FindTIFFreadsTIFF_VERSION_STRINGfromtiffvers.hand checks it throughfind_package_handle_standard_args, so no other code is needed. 4.0.3 is the minimum set by 40f5c4d; until now it was stated only in a source comment.Evidence
Local, macOS, CMake 3.26, Homebrew libtiff 4.7.2,
-DITK_BUILD_DEFAULT_MODULES=OFF -DModule_ITKIOTIFF=ON -DITK_USE_SYSTEM_TIFF=ON:Could NOT find TIFF: Found unsuitable version "4.7.2", but required is at least "99.0".ITKTIFF.cmakecontainsfind_package(TIFF 4.0.3 REQUIRED), andctest -R TIFFpasses 107 of 109 (the other two, KWStyle and the GTest driver, were not built).ITK_USE_SYSTEM_TIFF=OFF), which this change does not touch.