-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set H5 specific vars immediately if legacy find #4512
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2c9010f
Set H% specific vars immediately if legacy find
byrnHDF 3066aff
Correct find process vars (vs in-line build)
byrnHDF bc00d85
Correct SZIP find
byrnHDF 7584ff8
Everything is libaec 1.0.6 or newer
byrnHDF a55d4ec
Correct option help text
byrnHDF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -10,8 +10,8 @@ | |
# [email protected]. | ||
# | ||
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) | ||
option (ZLIB_USE_EXTERNAL "Use External Library Building for ZLIB else search" OFF) | ||
option (SZIP_USE_EXTERNAL "Use External Library Building for SZIP else search" OFF) | ||
|
||
if (NOT ZLIB_USE_LOCALCONTENT) | ||
set (ZLIB_URL ${ZLIB_TGZ_ORIGPATH}/${ZLIB_TGZ_NAME}) | ||
|
@@ -32,8 +32,8 @@ include (ExternalProject) | |
set (HDF5_ALLOW_EXTERNAL_SUPPORT "NO" CACHE STRING "Allow External Library Building (NO GIT TGZ)") | ||
set_property (CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO GIT TGZ) | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
set (ZLIB_USE_EXTERNAL ON CACHE BOOL "Use External Library Building for ZLIB" FORCE) | ||
set (SZIP_USE_EXTERNAL ON CACHE BOOL "Use External Library Building for SZIP" FORCE) | ||
set (ZLIB_USE_EXTERNAL ON CACHE BOOL "Use External Library Building for ZLIB else search" FORCE) | ||
set (SZIP_USE_EXTERNAL ON CACHE BOOL "Use External Library Building for SZIP else search" FORCE) | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT") | ||
set (ZLIB_URL ${ZLIB_GIT_URL} CACHE STRING "Path to zlib git repository") | ||
set (ZLIB_BRANCH ${ZLIB_GIT_BRANCH}) | ||
|
@@ -57,9 +57,9 @@ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MAT | |
endif () | ||
else () | ||
set (HDF5_ENABLE_Z_LIB_SUPPORT OFF CACHE BOOL "" FORCE) | ||
set (ZLIB_USE_EXTERNAL OFF CACHE BOOL "Use External Library Building for ZLIB") | ||
set (ZLIB_USE_EXTERNAL OFF CACHE BOOL "Use External Library Building for ZLIB else search") | ||
set (HDF5_ENABLE_SZIP_SUPPORT OFF CACHE BOOL "" FORCE) | ||
set (SZIP_USE_EXTERNAL OFF CACHE BOOL "Use External Library Building for SZIP") | ||
set (SZIP_USE_EXTERNAL OFF CACHE BOOL "Use External Library Building for SZIP else search") | ||
endif () | ||
endif () | ||
|
||
|
@@ -79,9 +79,9 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT) | |
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}) | ||
set (H5_ZLIB_INCLUDE_DIRS ${H5_ZLIB_INCLUDE_DIRS} ${H5_ZLIB_INCLUDE_DIR}) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${H5_ZLIB_LIBRARIES}) | ||
set (H5_ZLIB_INCLUDE_DIR_GEN ${ZLIB_INCLUDE_DIR}) | ||
set (H5_ZLIB_INCLUDE_DIRS ${H5_ZLIB_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR}) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${ZLIB_LIBRARIES}) | ||
endif () | ||
else () | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
|
@@ -119,20 +119,15 @@ if (HDF5_ENABLE_SZIP_SUPPORT) | |
if (NOT SZIP_USE_EXTERNAL) | ||
set(libaec_USE_STATIC_LIBS ${HDF5_USE_LIBAEC_STATIC}) | ||
set(SZIP_FOUND FALSE) | ||
find_package (libaec 1.0.5 CONFIG) | ||
if (SZIP_FOUND) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${H5_SZIP_LIBRARIES}) | ||
else () | ||
find_package (SZIP NAMES ${LIBAEC_PACKAGE_NAME}${HDF_PACKAGE_EXT} COMPONENTS static shared) | ||
if (NOT SZIP_FOUND) | ||
find_package (SZIP) # Legacy find | ||
endif () | ||
find_package (SZIP NAMES ${LIBAEC_PACKAGE_NAME}${HDF_PACKAGE_EXT} COMPONENTS static shared) | ||
if (NOT SZIP_FOUND) | ||
find_package (SZIP) # Legacy find | ||
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}) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${H5_SZIP_LIBRARIES}) | ||
set (H5_SZIP_INCLUDE_DIR_GEN ${SZIP_INCLUDE_DIR}) | ||
set (H5_SZIP_INCLUDE_DIRS ${H5_SZIP_INCLUDE_DIRS} ${SZIP_INCLUDE_DIR}) | ||
set (LINK_COMP_LIBS ${LINK_COMP_LIBS} ${SZIP_LIBRARIES}) | ||
endif () | ||
else () | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
|
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 (PLUGIN_USE_EXTERNAL "Use External Library Building for filter PLUGIN" OFF) | ||
option (PLUGIN_USE_EXTERNAL "Use External Library Building for filter PLUGIN else search" OFF) | ||
|
||
if (NOT PLUGIN_USE_LOCALCONTENT) | ||
set (PLUGIN_URL ${PLUGIN_TGZ_ORIGPATH}/${PLUGIN_TGZ_NAME}) | ||
|
@@ -26,7 +26,7 @@ include (ExternalProject) | |
set (HDF5_ALLOW_EXTERNAL_SUPPORT "NO" CACHE STRING "Allow External Library Building (NO GIT TGZ)") | ||
set_property (CACHE HDF5_ALLOW_EXTERNAL_SUPPORT PROPERTY STRINGS NO GIT TGZ) | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
set (PLUGIN_USE_EXTERNAL ON CACHE BOOL "Use External Library Building for PLUGIN" FORCE) | ||
set (PLUGIN_USE_EXTERNAL ON CACHE BOOL "Use External Library Building for PLUGIN else search" FORCE) | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT") | ||
set (PLUGIN_URL ${PLUGIN_GIT_URL} CACHE STRING "Path to PLUGIN git repository") | ||
set (PLUGIN_BRANCH ${PLUGIN_GIT_BRANCH}) | ||
|
@@ -41,7 +41,7 @@ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MAT | |
endif () | ||
endif () | ||
else () | ||
set (PLUGIN_USE_EXTERNAL OFF CACHE BOOL "Use External Library Building for PLUGIN") | ||
set (PLUGIN_USE_EXTERNAL OFF CACHE BOOL "Use External Library Building for PLUGIN else search") | ||
message (VERBOSE "Filter PLUGIN not built") | ||
endif () | ||
endif () | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like "else search" doesn't give much information and would just make this even more confusing for users, but I don't have any particular evidence to back that up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User sstill complained it was unclear and that is what happens search using find_package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I'm saying maybe that needs to be even more explicit, such as "else search system with find_package", even though I still think that isn't necessarily helpful for most people that just want to build their HDF5 with zlib support and don't know what find_package is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused - is that evidence? If it's OFF, what does that mean about "else search"? If it's ON, does it mean "Build and use designated External Library or use find_package to search system"?