Skip to content

Commit af3f2e9

Browse files
committed
Update FAQ based on actual usage of HDF5 variables
The CMakeLists.txt actually uses `HDF5_C_LIBRARY` and `HDF5_HL_LIBRARY` to find non-standard HDF5 installation. This just updates the FAQ with the correct usage.
1 parent af8f9ad commit af3f2e9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/FAQ.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,8 +1938,8 @@ It depends on the library. To specify a custom `ZLib`, for example, you would d
19381938

19391939
`HDF5` is more complex, since it requires both the `hdf5` and `hdf5_hl` libraries. You would specify custom `HDF5` libraries as follows:
19401940

1941-
$ cmake [Source Directory] -DHDF5_LIB=/path/to/hdf5.lib \
1942-
-DHDF5_HL_LIB=/path/to/hdf5_hl.lib \
1941+
$ cmake [Source Directory] -DHDF5_C_LIBRARY=/path/to/hdf5.lib \
1942+
-DHDF5_HL_LIBRARY=/path/to/hdf5_hl.lib \
19431943
-DHDF5_INCLUDE_DIR=/path/to/hdf5/include
19441944

19451945

@@ -1971,8 +1971,8 @@ If cmake is having problems finding the parallel `HDF5` install, you can specify
19711971

19721972

19731973
$ cmake [Source Directory] -DENABLE_PARALLEL=ON \
1974-
-DHDF5_LIB=/usr/lib64/openmpi/lib/libhdf5.so \
1975-
-DHDF5_HL_LIB=/usr/lib64/openmpi/lib/libhdf5.hl.so \
1974+
-DHDF5_C_LIBRARY=/usr/lib64/openmpi/lib/libhdf5.so \
1975+
-DHDF5_HL_LIBRARY=/usr/lib64/openmpi/lib/libhdf5.hl.so \
19761976
-DHDF5_INCLUDE_DIR=/usr/include/openmpi-x86_64 \
19771977

19781978
You will, of course, need to use the location of the libraries specific to your development environment.

0 commit comments

Comments
 (0)