hdf5.cmake 458 Bytes
Newer Older
1
add_external_project(
2 3
  hdf5
  DEPENDS zlib szip
4

5 6
  #always build in release mode.
  #enable install name so that we get full paths to library on apple
7
  CMAKE_ARGS
8
    -DCMAKE_BUILD_TYPE:STRING=Release
9 10 11 12
    -DBUILD_SHARED_LIBS:BOOL=TRUE
    -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=TRUE
    -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=TRUE
    -DHDF5_ENABLE_SZIP_ENCODING:BOOL=TRUE
13
    -DHDF5_BUILD_HL_LIB:BOOL=TRUE
14
    -DHDF5_BUILD_WITH_INSTALL_NAME:BOOL=TRUE
15 16

  LOG_BUILD 1
17
)