summaryrefslogtreecommitdiffstats
path: root/config/cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-06 21:23:15 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-06 21:23:15 (GMT)
commit83b23a5a42c2124c1c5933d0565be1bbefd1c30d (patch)
tree2ddbd0c929fe8b228c5dd7b8d45fb28c9e318a5c /config/cmake
parent9f12d8397515bdc448a1cd605d4d605e07940ca0 (diff)
downloadhdf5-83b23a5a42c2124c1c5933d0565be1bbefd1c30d.zip
hdf5-83b23a5a42c2124c1c5933d0565be1bbefd1c30d.tar.gz
hdf5-83b23a5a42c2124c1c5933d0565be1bbefd1c30d.tar.bz2
Use prefix variable
Diffstat (limited to 'config/cmake')
-rw-r--r--config/cmake/hdf5-config.cmake.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in
index 1803117..a0d6c49 100644
--- a/config/cmake/hdf5-config.cmake.in
+++ b/config/cmake/hdf5-config.cmake.in
@@ -100,9 +100,9 @@ endif ()
#-----------------------------------------------------------------------------
# Version Strings
#-----------------------------------------------------------------------------
-set (HDF5_VERSION_STRING @HDF5_VERSION_STRING@)
-set (HDF5_VERSION_MAJOR @HDF5_VERSION_MAJOR@)
-set (HDF5_VERSION_MINOR @HDF5_VERSION_MINOR@)
+set (${HDF5_PACKAGE_NAME}_VERSION_STRING @HDF5_VERSION_STRING@)
+set (${HDF5_PACKAGE_NAME}_VERSION_MAJOR @HDF5_VERSION_MAJOR@)
+set (${HDF5_PACKAGE_NAME}_VERSION_MINOR @HDF5_VERSION_MINOR@)
#-----------------------------------------------------------------------------
# Don't include targets if this file is being picked up by another
@@ -196,7 +196,7 @@ foreach (libtype IN LISTS ${HDF5_PACKAGE_NAME}_LIB_TYPE)
elseif (comp STREQUAL "Java")
set (${HDF5_PACKAGE_NAME}_${comp}_FOUND 1)
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_LIBRARY COMP_LIBRARY)
- set (${COMP_LIBRARY} ${${COMP_LIBRARY}} hdf5::${hdf5_comp})
+ set (${COMP_LIBRARY} ${${COMP_LIBRARY}} @HDF5_PACKAGE@::${hdf5_comp})
else ()
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 1)
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_${libtype}_LIBRARY COMP_LIBRARY)