diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-04-10 16:48:59 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-04-10 16:48:59 (GMT) |
commit | d87a94a00d09f8b441d02272b06d6866eec4c883 (patch) | |
tree | be1af45cd4c165fe4b438d3e8e2808a0b28744ab /config | |
parent | 3fc4ea3d3935f254ac61fd726f9b9d684fe653a6 (diff) | |
download | hdf5-d87a94a00d09f8b441d02272b06d6866eec4c883.zip hdf5-d87a94a00d09f8b441d02272b06d6866eec4c883.tar.gz hdf5-d87a94a00d09f8b441d02272b06d6866eec4c883.tar.bz2 |
HDFFV-10444 fix so numbers
Diffstat (limited to 'config')
-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) |