summaryrefslogtreecommitdiffstats
path: root/config/cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-03-26 17:26:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-03-26 17:26:03 (GMT)
commitf3dd294ff22d9052192c4be8d0df65f25eccf125 (patch)
tree237ad2a01156c4c1ca2897d831187b01809ae0aa /config/cmake
parentc8a5172968cafc2a11e90494c906b1fc736d61b1 (diff)
downloadhdf5-f3dd294ff22d9052192c4be8d0df65f25eccf125.zip
hdf5-f3dd294ff22d9052192c4be8d0df65f25eccf125.tar.gz
hdf5-f3dd294ff22d9052192c4be8d0df65f25eccf125.tar.bz2
[svn-r26604] Add component aware configuration
Diffstat (limited to 'config/cmake')
-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