summaryrefslogtreecommitdiffstats
path: root/c++/examples/testh5c++.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'c++/examples/testh5c++.sh.in')
-rw-r--r--c++/examples/testh5c++.sh.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/c++/examples/testh5c++.sh.in b/c++/examples/testh5c++.sh.in
index 4281e3c..40d503f 100644
--- a/c++/examples/testh5c++.sh.in
+++ b/c++/examples/testh5c++.sh.in
@@ -19,6 +19,8 @@
# Modification:
#
+srcdir=@srcdir@
+
# Initializations
TESTNAME=h5c++
EXIT_SUCCESS=0
@@ -41,11 +43,6 @@ verbose=yes
myos=`uname -s`
myhostnama=`uname -n`
-# The build (current) directory might be different than the source directory.
-if test -z "$srcdir"; then
- srcdir=.
-fi
-
# Generate some source files and library for tests.
suffix=cpp # source file suffix
hdf5main=${H5TOOL}_hdf5main.$suffix