summaryrefslogtreecommitdiff
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorSeth R Johnson <johnsonsr@ornl.gov>2020-08-14 12:00:30 -0400
committerSeth R Johnson <johnsonsr@ornl.gov>2020-08-14 12:03:21 -0400
commit5eff2740174a96b4038ab33ef5627b31a96c6758 (patch)
tree3674e1b6ee6729be33f46c8b79c238f809409341 /Modules/FindHDF5.cmake
parenta8e0a6b3e4407d23c3a289ac5b0a782e745bccc3 (diff)
downloadcmake-5eff2740174a96b4038ab33ef5627b31a96c6758.tar.gz
FindHDF5: Remove VTK library type detection
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 323facd0d6..0a92c71404 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -997,7 +997,6 @@ if (HDF5_FOUND)
unset(_hdf5_definitions)
endif ()
- include(vtkDetectLibraryType)
foreach (hdf5_lang IN LISTS HDF5_LANGUAGE_BINDINGS)
if (hdf5_lang STREQUAL "C")
set(hdf5_target_name "hdf5")
@@ -1029,8 +1028,7 @@ if (HDF5_FOUND)
"HDF5 was found, but a different variable was set which contains "
"its location.")
endif ()
- vtk_detect_library_type(_hdf5_libtype PATH "${_hdf5_location}")
- add_library("hdf5::${hdf5_target_name}" "${_hdf5_libtype}" IMPORTED)
+ add_library("hdf5::${hdf5_target_name}" UNKNOWN IMPORTED)
string(REPLACE "-D" "" _hdf5_definitions "${HDF5_${hdf5_lang}_DEFINITIONS}")
if (NOT HDF5_${hdf5_lang}_INCLUDE_DIRS)
set(HDF5_${hdf5_lang}_INCLUDE_DIRS ${HDF5_INCLUDE_DIRS})
@@ -1089,8 +1087,7 @@ if (HDF5_FOUND)
"HDF5 was found, but a different variable was set which contains "
"its location.")
endif ()
- vtk_detect_library_type(_hdf5_libtype PATH "${_hdf5_location}")
- add_library("hdf5::${hdf5_target_name}" "${_hdf5_libtype}" IMPORTED)
+ add_library("hdf5::${hdf5_target_name}" UNKNOWN IMPORTED)
string(REPLACE "-D" "" _hdf5_definitions "${HDF5_${hdf5_lang}_HL_DEFINITIONS}")
set_target_properties("hdf5::${hdf5_target_name}" PROPERTIES
IMPORTED_LOCATION "${_hdf5_location}"