Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
Fix CMake build when HDF5 is not in system path (cctbx#533)
Browse files Browse the repository at this point in the history
In all our build environments, HDF5 is present in a system search path, so
it could always be found by image_ext.cpp.

Fixes cctbx#532.
  • Loading branch information
ndevenish committed Aug 9, 2022
1 parent 43dd5cd commit 4f890eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsfragments/533.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix CMake build when HDF5 is not present in the system include paths.
2 changes: 1 addition & 1 deletion src/dxtbx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Python_add_library( dxtbx_format_image_ext
MODULE
format/boost_python/image_ext.cc
)
target_link_libraries( dxtbx_format_image_ext PUBLIC Boost::python CCTBX::scitbx )
target_link_libraries( dxtbx_format_image_ext PUBLIC Boost::python CCTBX::scitbx HDF5::HDF5)
# If we have CBFlib available, use it
if (TARGET CBFlib::cbf)
target_link_libraries( dxtbx_format_image_ext PRIVATE CBFlib::cbf )
Expand Down

0 comments on commit 4f890eb

Please sign in to comment.