diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-04-10 13:55:17 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-04-10 13:55:17 (GMT) |
commit | db3d744f250974ca8739269928fa194a84fca5c6 (patch) | |
tree | 5192cb6fbcac0c842f6e77ad3ca1010bdffbb34a /config/cmake | |
parent | 057a4e7fd635bbd1c9ce1f04692cd9f4b827dc86 (diff) | |
download | hdf5-db3d744f250974ca8739269928fa194a84fca5c6.zip hdf5-db3d744f250974ca8739269928fa194a84fca5c6.tar.gz hdf5-db3d744f250974ca8739269928fa194a84fca5c6.tar.bz2 |
HDFFV-10444 fix soversion numbers for libraries
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/HDF5Macros.cmake | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/config/cmake/HDF5Macros.cmake b/config/cmake/HDF5Macros.cmake index c3dea9a..e472a67 100644 --- a/config/cmake/HDF5Macros.cmake +++ b/config/cmake/HDF5Macros.cmake @@ -10,19 +10,15 @@ # help@hdfgroup.org. # #------------------------------------------------------------------------------- -macro (H5_SET_LIB_OPTIONS libtarget libname libtype) +macro (H5_SET_LIB_OPTIONS libtarget libname libtype libpackage) set (LIB_OUT_NAME "${libname}") # SOVERSION passed in ARGN when shared if (${libtype} MATCHES "SHARED") - if (ARGN) - set (PACKAGE_SOVERSION ${ARGN}) - else () - set (PACKAGE_SOVERSION ${H5_SOVERS_MAJOR}) - endif () + set (PACKAGE_SOVERSION ${HDF5_${libpackage}_PACKAGE_SOVERSION}) if (WIN32) set (LIBHDF_VERSION ${HDF5_PACKAGE_VERSION_MAJOR}) else () - set (LIBHDF_VERSION ${HDF5_PACKAGE_SOVERSION}) + set (LIBHDF_VERSION ${HDF5_${libpackage}_PACKAGE_SOVERSION_MAJOR}) endif () set_target_properties (${libtarget} PROPERTIES VERSION ${LIBHDF_VERSION}) if (WIN32) |