summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-31 22:14:17 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-31 22:16:37 (GMT)
commitd28e5263feb80edc8761280dba997c7c76f2b49b (patch)
treec35a9dd3551492a824b545d36aca7f3f4651a764 /Modules
parent25441f26171531ff114f3b9a6fad6ee2edc7ef29 (diff)
downloadCMake-d28e5263feb80edc8761280dba997c7c76f2b49b.zip
CMake-d28e5263feb80edc8761280dba997c7c76f2b49b.tar.gz
CMake-d28e5263feb80edc8761280dba997c7c76f2b49b.tar.bz2
FindHDF5: Drop IMPORTED_IMPLIB property from imported UNKNOWN libraries
The imported targets added by commit a8e0a6b3e4 (FindHDF5: Port changes from VTK, 2020-06-10, v3.19.0-rc1~312^2~1) to use config-specific locations set the `IMPORTED_IMPLIB` target property. That property has no meaning for an imported library with type `UNKNOWN`. Drop it to avoid confusion.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindHDF5.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 6e07da5..5ee7210 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -1067,7 +1067,6 @@ if (HDF5_FOUND)
endif ()
set_target_properties("hdf5::${hdf5_target_name}" PROPERTIES
IMPORTED_LOCATION "${_hdf5_location}"
- IMPORTED_IMPLIB "${_hdf5_location}"
INTERFACE_INCLUDE_DIRECTORIES "${HDF5_${hdf5_lang}_INCLUDE_DIRS}"
INTERFACE_COMPILE_DEFINITIONS "${_hdf5_definitions}")
if (_hdf5_libtype STREQUAL "SHARED")
@@ -1127,7 +1126,6 @@ if (HDF5_FOUND)
string(REPLACE "-D" "" _hdf5_definitions "${HDF5_${hdf5_lang}_HL_DEFINITIONS}")
set_target_properties("hdf5::${hdf5_target_name}" PROPERTIES
IMPORTED_LOCATION "${_hdf5_location}"
- IMPORTED_IMPLIB "${_hdf5_location}"
INTERFACE_INCLUDE_DIRECTORIES "${HDF5_${hdf5_lang}_HL_INCLUDE_DIRS}"
INTERFACE_COMPILE_DEFINITIONS "${_hdf5_definitions}")
if (_hdf5_libtype STREQUAL "SHARED")