summaryrefslogtreecommitdiffstats
path: root/config/cmake/hdf5-config.cmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/cmake/hdf5-config.cmake.in')
-rw-r--r--config/cmake/hdf5-config.cmake.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in
index 1b4de77..a084fb3 100644
--- a/config/cmake/hdf5-config.cmake.in
+++ b/config/cmake/hdf5-config.cmake.in
@@ -104,9 +104,6 @@ endif ()
# Handle requested components:
list (REMOVE_DUPLICATES ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
-foreach (comp IN LISTS ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
- list (REMOVE_ITEM ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS ${comp})
-endforeach ()
foreach (comp IN LISTS ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
set (hdf5_comp2)
if (${comp} MATCHES "C")
@@ -145,6 +142,8 @@ endforeach ()
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} ${hdf5_comp})
endif ()
endforeach ()
-endforeach ()
-check_required_components(${HDF5_PACKAGE_NAME})
+ check_required_components(${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
+
+set (${HDF5_PACKAGE_NAME}_LIBRARIES ${${COMP_LIBRARY}})
+ \ No newline at end of file