Skip to content

Commit

Permalink
Merge pull request #4989 from blowekamp/libtiff_fix_CMath
Browse files Browse the repository at this point in the history
COMP: itktiff - Use raw math library
  • Loading branch information
blowekamp authored Nov 25, 2024
2 parents 11ea27f + 6336380 commit e9f7412
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Modules/ThirdParty/TIFF/src/itktiff/libtiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,15 @@ if(WEBP_SUPPORT)
string(APPEND tiff_requires_private " libwebp")
endif()
if(CMath_LIBRARY)
target_include_directories(itktiff
PRIVATE
${CMath_INCLUDE_DIRS}
)
target_link_libraries(itktiff PRIVATE "${CMath_LIBRARIES}")
if(FALSE) # XXX(ITK): We don't want to use an imported target for CMath
target_link_libraries(itktiff PRIVATE CMath::CMath)
list(APPEND tiff_libs_private_list "${CMath_LIBRARY}")
endif()
endif()

set(tiff_libs_private_list "${tiff_libs_private_list}" PARENT_SCOPE)
Expand Down

0 comments on commit e9f7412

Please sign in to comment.