Skip to content

Commit

Permalink
Use <PackageName>_ROOT mechanism to find ZLIB and SZIP when building …
Browse files Browse the repository at this point in the history
…HDF5
  • Loading branch information
DavidAce committed Jun 5, 2021
1 parent 140951a commit 8f39549
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmake/external_hdf5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ ExternalProject_Add(external_hdf5
-DCMAKE_INSTALL_MESSAGE=LAZY
# HDF5 flags
-DBUILD_TESTING:BOOL=OFF
-DZLIB_LIBRARY=${ZLIB_LIBRARY}
-DZLIB_INCLUDE_DIR=${ZLIB_INCLUDE_DIR}
-DSZIP_LIBRARY=${SZIP_LIBRARY}
-DSZIP_INCLUDE_DIR=${SZIP_INCLUDE_DIR}
-DHDF5_ENABLE_PARALLEL:BOOL=${HDF5_ENABLE_PARALLEL}
-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=${HDF5_ENABLE_Z_LIB_SUPPORT}
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=${HDF5_ENABLE_SZIP_SUPPORT}
-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=${HDF5_ENABLE_Z_LIB_SUPPORT} # Hint: Set ZLIB_ROOT
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=${HDF5_ENABLE_SZIP_SUPPORT} # Hint: Set SZIP_ROOT
-DHDF5_BUILD_TOOLS:BOOL=ON
-DHDF5_BUILD_FORTRAN:BOOL=OFF
-DHDF5_BUILD_EXAMPLES:BOOL=OFF
Expand Down

0 comments on commit 8f39549

Please sign in to comment.