microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.26k stars 6.41k forks source link

[hdf5] vcpkg's hdf5 should provide hdf5 in a manner CMake's builtin findhdf5.cmake can understand, or use vcpkg_cmake_wrapper.cmake #15357

Open BillyONeal opened 3 years ago

BillyONeal commented 3 years ago

CMake 3.19.x comes with an updated FindHDF5 which now provides targets; @ras0219 / @ras0219-msft indicated as part of the review of https://github.com/microsoft/vcpkg/pull/14716 that we should be providing a drop-in compatible interface with cmake's builtins here.

We should make sure we provide a vcpkg_cmake_wrapper.cmake which provides all of the variables and targets CMake's builtin FindHDF5.cmake provides, and remove several resulting patches in downstream ports.

JackBoosY commented 2 years ago

All the cmake provided macros are not be declared in hdf5-config.cmake: