We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e26a3b commit 123a6b4Copy full SHA for 123a6b4
cmake/hdf5.cmake
@@ -40,11 +40,7 @@ set(HDF5_INCLUDE_DIRS ${CMAKE_INSTALL_FULL_INCLUDEDIR})
40
file(READ ${CMAKE_CURRENT_LIST_DIR}/libraries.json json)
41
42
# --- Zlib
43
-if(build_zlib)
44
- set(zlib_dep DEPENDS ZLIB)
45
-else()
46
- set(zlib_dep)
47
-endif()
+set(zlib_dep)
48
49
if(TARGET ZLIB::ZLIB)
50
add_custom_target(ZLIB)
@@ -53,6 +49,7 @@ elseif(h5fortran_find AND NOT build_zlib)
53
endif()
54
55
51
if(NOT TARGET ZLIB::ZLIB)
52
+ set(zlib_dep DEPENDS ZLIB)
56
include(${CMAKE_CURRENT_LIST_DIR}/zlib.cmake)
57
58
0 commit comments