Skip to content

Commit

Permalink
COMP: itktiff - Use raw math library
Browse files Browse the repository at this point in the history
Don't use imported CMath::CMath target, use raw library to avoid
having to export library in ITK.
  • Loading branch information
blowekamp committed Nov 25, 2024
1 parent 2792d9a commit 6336380
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 6336380

Please sign in to comment.