-
-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code extracted from: https://github.com/HDFGroup/hdf5.git at commit db30c2da68ece4a155e9e50c28ec16d6057509b2 (hdf5-1_10_7).
- Loading branch information
Showing
529 changed files
with
42,791 additions
and
32,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
# If you do not have access to either file, you may request a copy from | ||
# [email protected]. | ||
# | ||
option (USE_LIBAEC "Use AEC library as SZip Filter" OFF) | ||
|
||
include (ExternalProject) | ||
#option (HDF5_ALLOW_EXTERNAL_SUPPORT "Allow External Library Building (NO GIT TGZ)" "NO") | ||
|
@@ -32,6 +33,9 @@ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MAT | |
message (STATUS "Filter ZLIB file ${ZLIB_URL} not found") | ||
endif () | ||
set (SZIP_URL ${TGZPATH}/${SZIP_TGZ_NAME}) | ||
if (USE_LIBAEC) | ||
set (SZIP_URL ${TGZPATH}/${SZAEC_TGZ_NAME}) | ||
endif () | ||
if (NOT EXISTS "${SZIP_URL}") | ||
set (HDF5_ENABLE_SZIP_SUPPORT OFF CACHE BOOL "" FORCE) | ||
message (STATUS "Filter SZIP file ${SZIP_URL} not found") | ||
|
@@ -54,7 +58,6 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT) | |
find_package (ZLIB) # Legacy find | ||
if (ZLIB_FOUND) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${ZLIB_LIBRARIES}) | ||
set (LINK_COMP_SHARED_LIBS ${LINK_COMP_SHARED_LIBS} ${ZLIB_LIBRARIES}) | ||
endif () | ||
endif () | ||
endif () | ||
|
@@ -85,9 +88,6 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT) | |
if (H5_HAVE_FILTER_DEFLATE) | ||
set (EXTERNAL_FILTERS "${EXTERNAL_FILTERS} DEFLATE") | ||
endif () | ||
if (BUILD_SHARED_LIBS) | ||
set (LINK_COMP_SHARED_LIBS ${LINK_COMP_SHARED_LIBS} ${ZLIB_SHARED_LIBRARY}) | ||
endif () | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${ZLIB_STATIC_LIBRARY}) | ||
INCLUDE_DIRECTORIES (${ZLIB_INCLUDE_DIRS}) | ||
message (STATUS "Filter ZLIB is ON") | ||
|
@@ -105,7 +105,6 @@ if (HDF5_ENABLE_SZIP_SUPPORT) | |
find_package (SZIP) # Legacy find | ||
if (SZIP_FOUND) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${SZIP_LIBRARIES}) | ||
set (LINK_COMP_SHARED_LIBS ${LINK_COMP_SHARED_LIBS} ${SZIP_LIBRARIES}) | ||
endif () | ||
endif () | ||
endif () | ||
|
@@ -122,13 +121,16 @@ if (HDF5_ENABLE_SZIP_SUPPORT) | |
set (H5_HAVE_SZLIB_H 1) | ||
set (H5_HAVE_LIBSZ 1) | ||
message (STATUS "Filter SZIP is built") | ||
if (USE_LIBAEC) | ||
message (STATUS "... with library AEC") | ||
set (SZ_PACKAGE_NAME ${LIBAEC_PACKAGE_NAME}) | ||
else () | ||
set (SZ_PACKAGE_NAME ${SZIP_PACKAGE_NAME}) | ||
endif () | ||
else () | ||
message (FATAL_ERROR "SZIP is Required for SZIP support in HDF5") | ||
endif () | ||
endif () | ||
if (BUILD_SHARED_LIBS) | ||
set (LINK_COMP_SHARED_LIBS ${LINK_COMP_SHARED_LIBS} ${SZIP_SHARED_LIBRARY}) | ||
endif () | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${SZIP_STATIC_LIBRARY}) | ||
INCLUDE_DIRECTORIES (${SZIP_INCLUDE_DIRS}) | ||
message (STATUS "Filter SZIP is ON") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.