File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -666,7 +666,11 @@ if((NOT DEFINED HDF5_PLUGIN_PATH) OR ("${HDF5_PLUGIN_PATH}" STREQUAL ""))
666666 string (REPLACE "\\ " "/" AUP "$ENV{ALLUSERSPROFILE} " )
667667 set (HDF5_PLUGIN_PATH "${AUP} /hdf5/lib/plugin" )
668668 else ()
669- set (HDF5_PLUGIN_PATH "/usr/local/hdf5/lib/plugin" )
669+ if (NOT DEFINED CMAKE_INSTALL_PREFIX )
670+ set (HDF5_PLUGIN_PATH "/usr/local/hdf5/lib/plugin" )
671+ else ()
672+ set (HDF5_PLUGIN_PATH "${CMAKE_INSTALL_PREFIX} /hdf5/lib/plugin" )
673+ endif (NOT DEFINED CMAKE_INSTALL_PREFIX )
670674 endif ()
671675 set (ENV{HDF5_PLUGIN_PATH} "${HDF5_PLUGIN_PATH} " )
672676endif ()
@@ -696,7 +700,7 @@ if(NETCDF_ENABLE_PLUGIN_INSTALL)
696700 endif (DEFINED ENV{HDF5_PLUGIN_PATH} )
697701 message (STATUS "Defaulting to -DPLUGIN_INSTALL_DIR=${NETCDF_PLUGIN_INSTALL_DIR} " )
698702 endif ()
699- endif (ENABLE_PLUGIN_INSTALL )
703+ endif (NETCDF_ENABLE_PLUGIN_INSTALL )
700704
701705if (ENABLE_PLUGIN_INSTALL)
702706 # Use the lowest priority dir in the path
You can’t perform that action at this time.
0 commit comments