Add -showconfig to h5cc scripts to dump libhdf5.settings file (#1391)

* Add -showconfig to h5cc scripts to dump libhdf5.settings file

* Added note
This commit is contained in:
Allen Byrne 2022-02-11 07:46:09 -06:00 committed by GitHub
parent 4ce6373a0b
commit 96cf19499b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

View File

@ -27,6 +27,27 @@ prg=$dir/$(basename -- "$prg") || exit
printf '%s\n' "$prg"
printf 'dir is %s\n' "$dir"
# Show the configuration summary of the library recorded in the
# libhdf5.settings file reside in the lib directory.
showconfigure()
{
cat $dir/lib/libhdf5.settings
status=$?
}
export PKG_CONFIG_PATH=$dir/lib/pkgconfig
@_PKG_CONFIG_COMPILER@ $@ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@`
for arg in $@ ; do
case "$arg" in
-showconfig)
showconfigure
exit $status
;;
*)
@_PKG_CONFIG_COMPILER@ $@ `pkg-config --define-variable=prefix=$dir --cflags --libs @_PKG_CONFIG_LIBNAME@`
status=$?
exit $status
;;
esac
done

View File

@ -47,6 +47,13 @@ New Features
Configuration:
-------------
- Added new option to the h5cc scripts produced by CMake.
Add -showconfig option to h5cc scripts that cat the
libhdf5-settings to the standard output.
(ADB - 2022/01/25)
- CMake will now run the PowerShell script tests in test/ by default
on Windows.