Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / netcdf-cxx4 / cmake-h5free.patch
blob7d1723c3ef98ce071fba682c5b75d3745322716f
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 60c699d..606b972 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -402,7 +402,7 @@ ELSE(MSVC)
6 FIND_PACKAGE(HDF5 COMPONENTS C HL REQUIRED)
7 ENDIF(MSVC)
9 -CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARY_hdf5} H5free_memory "" HAVE_H5FREE_MEMORY)
10 +CHECK_LIBRARY_EXISTS(${HDF5_C_LIBRARIES} H5free_memory "" HAVE_H5FREE_MEMORY)
11 IF(NOT HAVE_H5FREE_MEMORY)
12 MESSAGE(STATUS "Plugin support requires libhdf5 with H5Free support. Your libhdf5 install does not provide H5Free. Please install a newer version of libhdf5 if you require plugin compression support.")
13 SET(NC_HAS_DEF_VAR_FILTER "")