Skip to content
Snippets Groups Projects
Verified Commit 81329cdd authored by Lars Bilke's avatar Lars Bilke
Browse files

[cmake] Fix build with system zlib.

parent f423e5b9
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,10 @@ else()
if(HDF5_ADDED)
target_include_directories(hdf5-static INTERFACE ${HDF5_BINARY_DIR})
list(APPEND DISABLE_WARNINGS_TARGETS hdf5-static)
set(HDF5_LIBRARIES hdf5-static zlibstatic)
set(HDF5_LIBRARIES hdf5-static)
if(ZLIB_ADDED)
list(APPEND HDF5_LIBRARIES zlibstatic)
endif()
set(HDF5_C_INCLUDE_DIR ${HDF5_SOURCE_DIR})
set(HDF5_INCLUDE_DIR ${HDF5_SOURCE_DIR})
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment