diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-10-18 01:32:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 01:32:31 (GMT) |
commit | fc788559f7747eeefd152fc8c7844f45d3845300 (patch) | |
tree | 22005bc312b717267db6a176ac73abaf3ce5f1ae /CMakePlugins.cmake | |
parent | 2a3b511e96fbc468ef2b934eb169048e723a2f34 (diff) | |
download | hdf5-fc788559f7747eeefd152fc8c7844f45d3845300.zip hdf5-fc788559f7747eeefd152fc8c7844f45d3845300.tar.gz hdf5-fc788559f7747eeefd152fc8c7844f45d3845300.tar.bz2 |
Correct use of set() command with options (#3667) (#3703)
* Correct use of set() command with options
* Force filter off if not found
Co-authored-by: Allen Byrne <50328838+byrnHDF@users.noreply.github.com>
Diffstat (limited to 'CMakePlugins.cmake')
-rw-r--r-- | CMakePlugins.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakePlugins.cmake b/CMakePlugins.cmake index b96d1ee..bc1074f 100644 --- a/CMakePlugins.cmake +++ b/CMakePlugins.cmake @@ -9,9 +9,8 @@ # If you do not have access to either file, you may request a copy from # help@hdfgroup.org. # -option (PLUGIN_USE_EXTERNAL "Use External Library Building for filter PLUGIN" 0) +option (PLUGIN_USE_EXTERNAL "Use External Library Building for filter PLUGIN" OFF) -set (PLUGIN_USE_EXTERNAL "Use External Library Building for PLUGIN" 1) if (NOT PLUGIN_USE_LOCALCONTENT) set (PLUGIN_URL ${PLUGIN_TGZ_ORIGPATH}/${PLUGIN_TGZ_NAME}) else () @@ -27,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 "Use External Library Building for PLUGIN" 1) + set (PLUGIN_USE_EXTERNAL ON CACHE BOOL "Use External Library Building for PLUGIN") 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}) @@ -42,7 +41,7 @@ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MAT endif () endif () else () - set (PLUGIN_USE_EXTERNAL 0) + set (PLUGIN_USE_EXTERNAL OFF CACHE BOOL "Use External Library Building for PLUGIN") message (VERBOSE "Filter PLUGIN not built") endif () endif () |