Skip to content

Commit

Permalink
ENH: Support thirdparty hdf5 using system zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp committed Nov 20, 2024
1 parent 4ee1977 commit 5227203
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,11 @@ endif ()
# Assuming they don't
foreach (libs ${LINK_COMP_LIBS})
# set (_PKG_CONFIG_REQUIRES_PRIVATE "${_PKG_CONFIG_REQUIRES_PRIVATE} -l${libs}")
get_target_property (libname ${libs} OUTPUT_NAME)
if (TARGET ${libs})
get_target_property (libname ${libs} OUTPUT_NAME)
else()
set(libname ${libs})
endif()
set (_PKG_CONFIG_LIBS_PRIVATE "${_PKG_CONFIG_LIBS_PRIVATE} -l${libname}")
endforeach ()

Expand Down

0 comments on commit 5227203

Please sign in to comment.