-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix daily-build CI and correct use of *_FOUND settings for filters (#…
- Loading branch information
Showing
2 changed files
with
14 additions
and
11 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
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,7 +9,7 @@ | |
# If you do not have access to either file, you may request a copy from | ||
# [email protected]. | ||
# | ||
option (USE_LIBAEC_STATIC "Use static AEC library " OFF) | ||
option (USE_LIBAEC_STATIC "Use static AEC library" OFF) | ||
option (ZLIB_USE_EXTERNAL "Use External Library Building for ZLIB" OFF) | ||
option (SZIP_USE_EXTERNAL "Use External Library Building for SZIP" OFF) | ||
|
||
|
@@ -66,14 +66,17 @@ endif () | |
#----------------------------------------------------------------------------- | ||
# Option for ZLib support | ||
#----------------------------------------------------------------------------- | ||
set(H5_ZLIB_FOUND FALSE) | ||
option (HDF5_ENABLE_Z_LIB_SUPPORT "Enable Zlib Filters" ON) | ||
if (HDF5_ENABLE_Z_LIB_SUPPORT) | ||
if (NOT H5_ZLIB_HEADER) | ||
if (NOT ZLIB_USE_EXTERNAL) | ||
set(ZLIB_FOUND FALSE) | ||
find_package (ZLIB NAMES ${ZLIB_PACKAGE_NAME}${HDF_PACKAGE_EXT} COMPONENTS static shared) | ||
if (NOT H5_ZLIB_FOUND) | ||
if (NOT ZLIB_FOUND) | ||
find_package (ZLIB) # Legacy find | ||
endif () | ||
set(H5_ZLIB_FOUND ${ZLIB_FOUND}) | ||
if (H5_ZLIB_FOUND) | ||
set (H5_ZLIB_HEADER "zlib.h") | ||
set (H5_ZLIB_INCLUDE_DIR_GEN ${H5_ZLIB_INCLUDE_DIR}) | ||
|
@@ -89,9 +92,7 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT) | |
endif () | ||
else () | ||
# This project is being called from within another and ZLib is already configured | ||
set (H5_HAVE_FILTER_DEFLATE 1) | ||
set (H5_HAVE_ZLIB_H 1) | ||
set (H5_HAVE_LIBZ 1) | ||
set(H5_ZLIB_FOUND TRUE) | ||
endif () | ||
if (H5_ZLIB_FOUND) | ||
set (H5_HAVE_FILTER_DEFLATE 1) | ||
|
@@ -111,22 +112,23 @@ endif () | |
#----------------------------------------------------------------------------- | ||
# Option for SzLib support | ||
#----------------------------------------------------------------------------- | ||
set(H5_SZIP_FOUND FALSE) | ||
option (HDF5_ENABLE_SZIP_SUPPORT "Use SZip Filter" ON) | ||
if (HDF5_ENABLE_SZIP_SUPPORT) | ||
option (HDF5_ENABLE_SZIP_ENCODING "Use SZip Encoding" ON) | ||
if (NOT SZIP_USE_EXTERNAL) | ||
set(H5_SZIP_FOUND FALSE) | ||
set(libaec_USE_STATIC_LIBS ${USE_LIBAEC_STATIC}) | ||
set(libaec_USE_STATIC_LIBS ${HDF5_USE_LIBAEC_STATIC}) | ||
set(SZIP_FOUND FALSE) | ||
find_package (libaec 1.0.5 CONFIG) | ||
if (H5_SZIP_FOUND) | ||
if (SZIP_FOUND) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${H5_SZIP_LIBRARIES}) | ||
endif () | ||
if (NOT H5_SZIP_FOUND) | ||
else () | ||
find_package (SZIP NAMES ${LIBAEC_PACKAGE_NAME}${HDF_PACKAGE_EXT} COMPONENTS static shared) | ||
if (NOT H5_SZIP_FOUND) | ||
if (NOT SZIP_FOUND) | ||
find_package (SZIP) # Legacy find | ||
endif () | ||
endif () | ||
set(H5_SZIP_FOUND ${SZIP_FOUND}) | ||
if (H5_SZIP_FOUND) | ||
set (H5_SZIP_INCLUDE_DIR_GEN ${H5_SZIP_INCLUDE_DIR}) | ||
set (H5_SZIP_INCLUDE_DIRS ${H5_SZIP_INCLUDE_DIRS} ${H5_SZIP_INCLUDE_DIR}) | ||
|