Skip to content

build: support vcpkg/brew zlib-ng 2.3.3#6284

Closed
hyoklee wants to merge 1 commit intoHDFGroup:developfrom
hyoklee:HDFGroup-hdf5-6204
Closed

build: support vcpkg/brew zlib-ng 2.3.3#6284
hyoklee wants to merge 1 commit intoHDFGroup:developfrom
hyoklee:HDFGroup-hdf5-6204

Conversation

@hyoklee
Copy link
Copy Markdown
Member

@hyoklee hyoklee commented Mar 11, 2026

CMake error occurs when a user installed zlib-ng 2.3.3 via vcpkg or brew and use it as zlib replacement.

CMake Error at src/CMakeLists.txt:1262 (target_link_libraries):
  Target "hdf5-static" links to:

    ZLIB::ZLIB

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



CMake Error at test/CMakeLists.txt:510 (target_link_libraries):
  Target "chunk_info" links to:

    ZLIB::ZLIB

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



CMake Error at test/CMakeLists.txt:538 (target_link_libraries):
  Target "direct_chunk" links to:

    ZLIB::ZLIB

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



CMake Error at tools/test/perform/CMakeLists.txt:130 (target_link_libraries):
  Target "zip_perf" links to:

    ZLIB::ZLIB

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.



-- Generating done (40.4s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

This PR fixes the above error.
Tested on Win-11/2025+VS2026 (vcpkg), Mac-12 (brew), and Ubuntu-24.04 (vcpkg)

ref: #6204

Copy link
Copy Markdown
Collaborator

@jhendersonHDF jhendersonHDF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already have fixes for zlib-ng in my branch https://github.com/jhendersonHDF/hdf5/tree/cmake_filters_changes

@github-project-automation github-project-automation bot moved this from To be triaged to In progress in HDF5 - TRIAGE & TRACK Mar 11, 2026
@hyoklee hyoklee closed this Mar 16, 2026
@github-project-automation github-project-automation bot moved this from In progress to Done in HDF5 - TRIAGE & TRACK Mar 16, 2026
@hyoklee hyoklee deleted the HDFGroup-hdf5-6204 branch March 16, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants