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 1fe96fc commit 1185866Copy full SHA for 1185866
cmake/build_hdf5.cmake
@@ -28,8 +28,11 @@ set(HDF5_INCLUDE_DIRS ${HDF5_ROOT}/include)
28
# --- Zlib
29
set(zlib_root -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON -DZLIB_USE_EXTERNAL:BOOL=OFF)
30
31
-include(${CMAKE_CURRENT_LIST_DIR}/build_zlib.cmake)
32
-
+if(TARGET ZLIB::ZLIB)
+ add_custom_target(ZLIB)
33
+else()
34
+ include(${CMAKE_CURRENT_LIST_DIR}/build_zlib.cmake)
35
+endif()
36
# --- HDF5
37
# https://forum.hdfgroup.org/t/issues-when-using-hdf5-as-a-git-submodule-and-using-cmake-with-add-subdirectory/7189/2
38
0 commit comments