diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-02-22 23:03:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 23:03:40 (GMT) |
commit | 0662ff97124ce2a04436877fd4966dd105d60b45 (patch) | |
tree | 022fc5e3da8bb5f1367c121cf1f57d0e2f298318 /config/cmake/cacheinit.cmake | |
parent | 832ac883f41001ea83e63ecffcab9b23cf19306a (diff) | |
download | hdf5-0662ff97124ce2a04436877fd4966dd105d60b45.zip hdf5-0662ff97124ce2a04436877fd4966dd105d60b45.tar.gz hdf5-0662ff97124ce2a04436877fd4966dd105d60b45.tar.bz2 |
1.10 Add fetchcontent for compression libs and fix cmake config #2487 (#2494)
* Add fetchcontent for compression libs and fix cmake config #2487
* Add CI test for FetchContent
Diffstat (limited to 'config/cmake/cacheinit.cmake')
-rw-r--r-- | config/cmake/cacheinit.cmake | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/config/cmake/cacheinit.cmake b/config/cmake/cacheinit.cmake index faa0533..41293ef 100644 --- a/config/cmake/cacheinit.cmake +++ b/config/cmake/cacheinit.cmake @@ -47,14 +47,21 @@ set (HDF5_MINGW_STATIC_GCC_LIBS ON CACHE BOOL "Statically link libgcc/libstdc++" set (HDF5_ALLOW_EXTERNAL_SUPPORT "NO" CACHE STRING "Allow External Library Building (NO GIT TGZ)" FORCE) set_property (CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO GIT TGZ) + +set (ZLIB_PACKAGE_NAME "zlib" CACHE STRING "Name of ZLIB package" FORCE) set (ZLIB_TGZ_NAME "ZLib.tar.gz" CACHE STRING "Use HDF5_ZLib from compressed file" FORCE) +set (ZLIB_TGZ_ORIGPATH "https://github.com/madler/zlib/releases/download/v1.2.13" CACHE STRING "Use ZLIB from original location" FORCE) +set (ZLIB_TGZ_ORIGNAME "zlib-1.2.13.tar.gz" CACHE STRING "Use ZLIB from original compressed file" FORCE) +set (ZLIB_USE_LOCALCONTENT OFF CACHE BOOL "Use local file for ZLIB FetchContent" FORCE) + +set (SZIP_PACKAGE_NAME "szip" CACHE STRING "Name of SZIP package" FORCE) +set (LIBAEC_PACKAGE_NAME "libaec" CACHE STRING "Name of AEC SZIP package" FORCE) set (SZIP_TGZ_NAME "SZip.tar.gz" CACHE STRING "Use SZip from compressed file" FORCE) set (SZAEC_TGZ_NAME "LIBAEC.tar.gz" CACHE STRING "Use SZip AEC from compressed file" FORCE) set (USE_LIBAEC ON CACHE BOOL "Use libaec szip replacement" FORCE) - -set (ZLIB_PACKAGE_NAME "zlib" CACHE STRING "Name of HDF5_ZLIB package" FORCE) -set (LIBAEC_PACKAGE_NAME "libaec" CACHE STRING "Name of AEC SZIP package" FORCE) -set (SZIP_PACKAGE_NAME "szip" CACHE STRING "Name of SZIP package" FORCE) +set (LIBAEC_TGZ_ORIGPATH "https://gitlab.dkrz.de/k202009/libaec/-/archive/v1.0.6" CACHE STRING "Use LIBAEC from original location" FORCE) +set (LIBAEC_TGZ_ORIGNAME "libaec-v1.0.6.tar.gz" CACHE STRING "Use LIBAEC from original compressed file" FORCE) +set (LIBAEC_USE_LOCALCONTENT OFF CACHE BOOL "Use local file for LIBAEC FetchContent" FORCE) ######################## # filter plugin options |