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 | 95e3ff2e88aa8dd984915e6e0373eed2bb96f17f (patch) | |
tree | 7a8575d4b40a717b8bb50ddc1ded991d26afe958 /Modules | |
parent | 6fc45f0282c32f8ae2e55e95e39c74171921876a (diff) | |
parent | 5267ba9d63524479a11d71f7a4458cf95b8ef445 (diff) | |
download | CMake-95e3ff2e88aa8dd984915e6e0373eed2bb96f17f.zip CMake-95e3ff2e88aa8dd984915e6e0373eed2bb96f17f.tar.gz CMake-95e3ff2e88aa8dd984915e6e0373eed2bb96f17f.tar.bz2 |
Merge topic 'FindHDF5-dbg-and-rel' into release-3.19
5267ba9d63 FindHDF5: Fix finding both debug and release libs
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5653
Diffstat (limited to 'Modules')
-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 0c1e93b..25f5a1f 100644 --- a/Modules/FindHDF5.cmake +++ b/Modules/FindHDF5.cmake @@ -991,10 +991,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) |