summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-12-13 13:12:49 +0100
committerEven Rouault <even.rouault@spatialys.com>2022-12-13 13:12:49 +0100
commita1be870b1fb77d5e6120425947943334c1504264 (patch)
tree86f87a9d37b44751e1785f602a42c1be50458227 /cmake
parent0530835da45a8b7dd11a1251425a6b5a74639a3a (diff)
downloadlibtiff-git-a1be870b1fb77d5e6120425947943334c1504264.tar.gz
Make TIFF_MAX_DIR_COUNT a autoconf/CMake setting
Diffstat (limited to 'cmake')
-rw-r--r--cmake/LibraryFeatures.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/LibraryFeatures.cmake b/cmake/LibraryFeatures.cmake
index 929ed241..89635d64 100644
--- a/cmake/LibraryFeatures.cmake
+++ b/cmake/LibraryFeatures.cmake
@@ -35,6 +35,8 @@ if(strip-chopping)
endif()
endif()
+set(TIFF_MAX_DIR_COUNT 1048576 CACHE STRING "Maximum number of TIFF directories that libtiff can browse through")
+
# Defer loading of strip/tile offsets
option(defer-strile-load "enable deferred strip/tile offset/size loading (also available at runtime with the 'D' flag of TIFFOpen())" OFF)
set(DEFER_STRILE_LOAD ${defer-strile-load})