Align CMake compiler wrappers with old Autotools versions (#5649)

Implemented missing --help/-h, -c, -echo and -shlib/-noshlib options

Added new -nohl option to avoid building and linking against
high-level HDF5 libraries if desired

Implemented adding of HDF5 installation library directory to rpath of
resulting executable/library and added new -norpath option to avoid
this behavior if desired

Added parsing of HDF5_USE_SHLIB environment variable to determine
whether to link against shared or static HDF5 libraries

Added parsing of HDF5_PKG_CONFIG_ARGS environment variable to separate
pkg-config-specific options from compiler-specific options and prevent
conflicts
This commit is contained in:
jhendersonHDF
2025-07-28 07:42:52 -05:00
committed by GitHub
parent b08f2481a1
commit 4a12cfec19
16 changed files with 363 additions and 177 deletions
+1
View File
@@ -151,6 +151,7 @@ if test $status -ne 0
then
echo " FAILED!"
else
echo " Passed"
$ECHO_N "Testing C/HL/h5ex_lite2...$ECHO_C"
exout ./h5ex_lite2 >tmp.test
cmp -s $TESTDIR/tmp.test $top_srcdir/$currentpath/tfiles/h5ex_lite2.tst
+1 -1
View File
@@ -33,7 +33,7 @@ for dir in */; do
then
echo "Entering directory: $dir"
(
mkdir "$top_builddir/$currentpath/$dir"
mkdir -p "$top_builddir/$currentpath/$dir"
cd "$dir"
./test-pc.sh $top_srcdir $top_builddir $currentpath/$dir # Execute script in the subdirectory
status=$?