Files
conan-center-index/recipes/netcdf/all/patches/4.7.4-0003-cmake-HDF5-cmake-components-wrong.patch
Paul Harris 60c7f382e9 (#10851) [package] netcdf/4.8.1: Upgrade to 4.8.1. Fix up patches for 4.7.4.
* Upgrade to 4.8.1.  Fix up patches for 4.7.4.

* Fix that will allow shared-debug to build

* byterange=False by default, AND set libdirs/includedirs

include/lib dirs were needed for a downstream consumer.
2022-05-30 16:04:25 +02:00

14 lines
541 B
Diff

conan-center-index is currently not able to correctly the components of HDF5.
--- liblib/CMakeLists.txt
+++ liblib/CMakeLists.txt
@@ -81,7 +81,7 @@
# builds:
# Make sure that HDF5_C_LIBRARY appears *after*
# HDF5_HL_LIBRARY.
- SET(TLL_LIBS ${HDF5_HL_LIBRARIES} ${HDF5_C_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY})
+ SET(TLL_LIBS ${HDF5_HL_LIBRARIES} ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY})
ELSE() # Windows CMake defines HDF5_LIBRARIES.
SET(TLL_LIBS ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY})
ENDIF()