forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove old EXTERNALPROJECT_ADD in favor of FETCH_CONTENT (HDFGroup#3624)
- Loading branch information
Showing
13 changed files
with
111 additions
and
258 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
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
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,27 +9,41 @@ | |
# 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" 0) | ||
|
||
set (PLUGIN_USE_EXTERNAL "Use External Library Building for PLUGIN" 1) | ||
if (NOT PLUGIN_USE_LOCALCONTENT) | ||
set (PLUGIN_URL ${PLUGIN_TGZ_ORIGPATH}/${PLUGIN_TGZ_ORIGNAME}) | ||
else () | ||
if (NOT H5PL_TGZPATH) | ||
set (H5PL_TGZPATH ${TGZPATH}) | ||
endif () | ||
set (PLUGIN_URL ${H5PL_TGZPATH}/${PLUGIN_TGZ_ORIGNAME}) | ||
endif () | ||
message (STATUS "Filter PLUGIN file is ${PLUGIN_URL}") | ||
|
||
include (ExternalProject) | ||
#option (HDF5_ALLOW_EXTERNAL_SUPPORT "Allow External Library Building (NO GIT TGZ)" "NO") | ||
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") | ||
option (PLUGIN_USE_EXTERNAL "Use External Library Building for filter PLUGIN" 1) | ||
set (PLUGIN_USE_EXTERNAL "Use External Library Building for PLUGIN" 1) | ||
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}) | ||
elseif (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
if (NOT TGZPATH) | ||
set (TGZPATH ${HDF5_SOURCE_DIR}) | ||
if (NOT H5PL_TGZPATH) | ||
set (H5PL_TGZPATH ${TGZPATH}) | ||
endif () | ||
set (PLUGIN_URL ${TGZPATH}/${PLUGIN_TGZ_NAME}) | ||
if (NOT EXISTS "${PLUGIN_URL}") | ||
set (HDF5_ENABLE_PLUGIN_SUPPORT OFF CACHE BOOL "" FORCE) | ||
message (STATUS "Filter PLUGIN file ${PLUGIN_URL} not found") | ||
if (PLUGIN_USE_LOCALCONTENT) | ||
if (NOT EXISTS "${PLUGIN_URL}") | ||
set (HDF5_ENABLE_PLUGIN_SUPPORT OFF CACHE BOOL "" FORCE) | ||
message (VERBOSE "Filter PLUGIN file ${PLUGIN_URL} not found") | ||
endif () | ||
endif () | ||
else () | ||
set (PLUGIN_USE_EXTERNAL 0) | ||
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
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 |
---|---|---|
@@ -1,3 +1,14 @@ | ||
# | ||
# Copyright by The HDF Group. | ||
# All rights reserved. | ||
# | ||
# This file is part of HDF5. The full HDF5 copyright notice, including | ||
# terms governing use, modification, and redistribution, is contained in | ||
# the COPYING file, which can be found at the root of the source code | ||
# distribution tree, or in https://www.hdfgroup.org/licenses. | ||
# If you do not have access to either file, you may request a copy from | ||
# [email protected]. | ||
# | ||
#------------------------------------------------------------------------------- | ||
# Plugins must be built SHARED | ||
#------------------------------------------------------------------------------- | ||
|
@@ -85,16 +96,16 @@ macro (FILTER_OPTION plname) | |
if (ENABLE_${plname}) | ||
option (HDF_${plname}_USE_EXTERNAL "Use External Library Building for ${PLUGIN_NAME} plugin" 0) | ||
mark_as_advanced (HDF_${plname}_USE_EXTERNAL) | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
if (H5PL_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR H5PL_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
set (HDF_${plname}_USE_EXTERNAL 1 CACHE BOOL "Use External Library Building for ${PLUGIN_NAME} plugin" FORCE) | ||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT") | ||
if (H5PL_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT") | ||
set (HDF_${plname}_URL ${HDF_${plname}_GIT_URL}) | ||
set (HDF_${plname}_BRANCH ${HDF_${plname}_GIT_BRANCH}) | ||
elseif (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
if (NOT TGZPATH) | ||
set (TGZPATH ${H5PL_SOURCE_DIR}) | ||
elseif (H5PL_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ") | ||
if (NOT H5PL_COMP_TGZPATH) | ||
set (H5PL_COMP_TGZPATH ${H5PL_SOURCE_DIR}/libs) | ||
endif () | ||
set (HDF_${plname}_URL ${TGZPATH}/${HDF_${plname}_TGZ_NAME}) | ||
set (HDF_${plname}_URL ${H5PL_COMP_TGZPATH}/${HDF_${plname}_TGZ_NAME}) | ||
endif () | ||
endif () | ||
add_subdirectory (${plname}) | ||
|
Oops, something went wrong.