Skip to content

Commit

Permalink
Debugging macos build on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Jan 22, 2025
1 parent a5e7758 commit c48c956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
]
},
"environment": {
"CMAKE_FRAMEWORK_PATH": "/opt/homebrew"
"CMAKE_FRAMEWORK_PATH": "/opt/homebrew:/opt/homebrew/opt/zlib"
}
},
{
Expand Down
2 changes: 2 additions & 0 deletions cmake/HDF5TargetUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ function(h5pp_get_modern_hdf5_target_name)


# Check whether zlib or szip are linked to the targets, and make sure we can find them
message(VERBOSE "Checking if the HDF5 targets need zlib ... ")
foreach (tgt ${HDF5_X_TARGETS};${HDF5_C_TARGET})
if(NOT TARGET ${tgt})
continue()
endif ()
get_target_property(HDF5_INTERFACE_LINK_LIBRARIES ${tgt} INTERFACE_LINK_LIBRARIES)
message(VERBOSE " ${tgt} : ${HDF5_INTERFACE_LINK_LIBRARIES}")
foreach (ltgt ${HDF5_INTERFACE_LINK_LIBRARIES})
if(ltgt MATCHES "ZLIB::ZLIB")
set(HDF5_ZLIB_REQUIRED REQUIRED)
Expand Down

0 comments on commit c48c956

Please sign in to comment.