Improve the default plugin path #5399 (#5407)

This commit is contained in:
Allen Byrne 2025-03-28 10:51:41 -05:00 committed by GitHub
parent 57f179ca57
commit 047b6e04ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 2 deletions

View File

@ -547,9 +547,9 @@ set (${HDF_PREFIX}_DEFAULT_VFD H5FD_SEC2)
if (NOT DEFINED "${HDF_PREFIX}_DEFAULT_PLUGINDIR")
if (WINDOWS)
set (${HDF_PREFIX}_DEFAULT_PLUGINDIR "%ALLUSERSPROFILE%\\\\hdf5\\\\lib\\\\plugin")
set (${HDF_PREFIX}_DEFAULT_PLUGINDIR "${CMAKE_INSTALL_PREFIX}\\\\lib\\\\plugin;%ALLUSERSPROFILE%\\\\hdf5\\\\lib\\\\plugin")
else ()
set (${HDF_PREFIX}_DEFAULT_PLUGINDIR "/usr/local/hdf5/lib/plugin")
set (${HDF_PREFIX}_DEFAULT_PLUGINDIR "${CMAKE_INSTALL_PREFIX}/lib/plugin:/usr/local/hdf5/lib/plugin")
endif ()
endif ()

View File

@ -47,6 +47,13 @@ New Features
Configuration:
-------------
- Added CMAKE_INSTALL_PREFIX to the default plugin path
To help users find their plugins, the default plugin path has been
changed to include the CMAKE_INSTALL_PREFIX. Adding the install prefix
allows users to skip setting the HDF5_PLUGIN_PATH environment variable
when using plugins with the default lib/plugin location.
- Removed support for autotools build system.
- The documentation in the source folder, doc, has been converted to doxygen files.