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
parent
1ccf094247
commit
29934c5b9f
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue