diff options
author | Brad King <brad.king@kitware.com> | 2021-01-06 19:08:18 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-01-06 19:08:27 (GMT) |
commit | 3734a96d989483a0fda3fb31445689a069e50345 (patch) | |
tree | 24664d23553a791d006c1ff54e7b4bdd6e58fe71 /Modules/FindHDF5.cmake | |
parent | 94047141b01dfccb84720ab61f749dc88fe09f18 (diff) | |
parent | 5267ba9d63524479a11d71f7a4458cf95b8ef445 (diff) | |
download | CMake-3734a96d989483a0fda3fb31445689a069e50345.zip CMake-3734a96d989483a0fda3fb31445689a069e50345.tar.gz CMake-3734a96d989483a0fda3fb31445689a069e50345.tar.bz2 |
Merge topic 'FindHDF5-dbg-and-rel'
5267ba9d63 FindHDF5: Fix finding both debug and release libs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5653
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r-- | Modules/FindHDF5.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake index 12f4c17..05696ae 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -1001,10 +1001,10 @@ if (HDF5_FOUND) add_library(HDF5::HDF5 INTERFACE IMPORTED) string(REPLACE "-D" "" _hdf5_definitions "${HDF5_DEFINITIONS}") set_target_properties(HDF5::HDF5 PROPERTIES - INTERFACE_LINK_LIBRARIES "${HDF5_LIBRARIES}" INTERFACE_INCLUDE_DIRECTORIES "${HDF5_INCLUDE_DIRS}" INTERFACE_COMPILE_DEFINITIONS "${_hdf5_definitions}") unset(_hdf5_definitions) + target_link_libraries(HDF5::HDF5 INTERFACE ${HDF5_LIBRARIES}) endif () foreach (hdf5_lang IN LISTS HDF5_LANGUAGE_BINDINGS) |