Skip to content

Commit

Permalink
BUG: Enable system TIFF with modern TIFF and cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp authored and dzenanz committed Aug 28, 2024
1 parent da08898 commit 7b83336
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Modules/ThirdParty/TIFF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ if(ITK_USE_SYSTEM_TIFF)
find_package(TIFF REQUIRED)
set(ITKTIFF_INCLUDE_DIRS
${ITKTIFF_BINARY_DIR}/src
${TIFF_INCLUDE_DIRS}
)
set(ITKTIFF_SYSTEM_INCLUDE_DIRS
${TIFF_INCLUDE_DIR}
)

set(ITKTIFF_LIBRARIES "${TIFF_LIBRARIES}")
set(ITKTIFF_NO_SRC 1)

# Check availability of different methods to access TIFF's field
# data structure.
include(CheckTypeSize)
set(CMAKE_REQUIRED_INCLUDES ${ITKTIFF_SYSTEM_INCLUDE_DIRS})
set(CMAKE_REQUIRED_LIBRARIES TIFF::TIFF)
set(CMAKE_EXTRA_INCLUDE_FILES "tiffio.h")
check_type_size(TIFFFieldReadCount ITK_TIFF_HAS_TIFFFieldReadCount)
check_type_size(TIFFField* ITK_TIFF_HAS_TIFFField)
Expand Down

0 comments on commit 7b83336

Please sign in to comment.