Incorporate a recent change to netcdf_plugin_install_dir

This commit is contained in:
Ward Fisher 2024-09-30 17:16:51 -06:00
parent ebd0229749
commit 7eaafef034

View File

@ -666,7 +666,11 @@ if((NOT DEFINED HDF5_PLUGIN_PATH) OR ("${HDF5_PLUGIN_PATH}" STREQUAL ""))
string(REPLACE "\\" "/" AUP "$ENV{ALLUSERSPROFILE}")
set(HDF5_PLUGIN_PATH "${AUP}/hdf5/lib/plugin")
else()
set(HDF5_PLUGIN_PATH "/usr/local/hdf5/lib/plugin")
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(HDF5_PLUGIN_PATH "/usr/local/hdf5/lib/plugin")
else()
set(HDF5_PLUGIN_PATH "${CMAKE_INSTALL_PREFIX}/hdf5/lib/plugin")
endif(NOT DEFINED CMAKE_INSTALL_PREFIX)
endif()
set(ENV{HDF5_PLUGIN_PATH} "${HDF5_PLUGIN_PATH}")
endif()
@ -696,7 +700,7 @@ if(NETCDF_ENABLE_PLUGIN_INSTALL)
endif(DEFINED ENV{HDF5_PLUGIN_PATH})
message(STATUS "Defaulting to -DPLUGIN_INSTALL_DIR=${NETCDF_PLUGIN_INSTALL_DIR}")
endif()
endif(ENABLE_PLUGIN_INSTALL)
endif(NETCDF_ENABLE_PLUGIN_INSTALL)
if(ENABLE_PLUGIN_INSTALL)
# Use the lowest priority dir in the path