From f3dd294ff22d9052192c4be8d0df65f25eccf125 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 26 Mar 2015 12:26:03 -0500 Subject: [svn-r26604] Add component aware configuration --- config/cmake/hdf5-config.cmake.in | 9 ++++----- 1 file 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 -- cgit v0.12