Don't treat hdf5 libs as if they were dirs

This causes nonsensical -L and -Wl,-rpath arguments to be added which
causes warnings to be printed by the linker.

HDF5_LIBRARIES are already being used in TARGET_LINK_LIBRARIES later so
the libraries are already being linked to correctly.

The bug was introduced in 23518278e8.
pull/145/head
Ryan Carsten Schmidt 2024-07-30 12:23:52 -05:00 committed by GitHub
parent 1ccf094247
commit 29934c5b9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -115,7 +115,6 @@ INCLUDE_DIRECTORIES( ${TinyXML_INCLUDE_DIR} )
# hdf5
find_package(HDF5 1.8 COMPONENTS C HL REQUIRED)
INCLUDE_DIRECTORIES (${HDF5_INCLUDE_DIRS})
link_directories(${HDF5_LIBRARIES})
# hdf5 compat
#ADD_DEFINITIONS( -DH5_USE_16_API )
#ADD_DEFINITIONS( -DH5_BUILT_AS_DYNAMIC_LIB )