From b5eeab4731e7db3ff70c48eb227cd12f16d45ed4 Mon Sep 17 00:00:00 2001 From: Juan Manzanero Date: Thu, 26 Sep 2024 23:25:22 +0200 Subject: [PATCH] [JMT] Forgot to change Findhdf5.cmake --- cmake/Findhdf5.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/Findhdf5.cmake b/cmake/Findhdf5.cmake index 0aeffd1..cee4aac 100644 --- a/cmake/Findhdf5.cmake +++ b/cmake/Findhdf5.cmake @@ -62,7 +62,11 @@ if (NOT hdf5_FOUND) "$" "$/${CMAKE_INSTALL_LIBDIR}/${HDF5_LIB_NAME}>") - target_link_libraries(hdf5 INTERFACE ZLIB::ZLIB SZIP::SZIP) + target_link_libraries(hdf5 INTERFACE ZLIB::ZLIB) + + if (WITH_SZIP) + target_link_libraries(hdf5 INTERFACE SZIP::SZIP) + endif() foreach(t ${HDF5_LIB_ALL_FILES})