diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-08-24 11:57:20 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-08-24 11:57:20 (GMT) |
commit | 0423c4aea8967e71a4ba52be0bbf724f7f7f4e28 (patch) | |
tree | 0b6704c97507d1114d6c74eb230cb75577e6aa75 /CMakeLists.txt | |
parent | 6cf20e07437d12c5e036ee5b4eb04014713b89dc (diff) | |
download | hdf5-0423c4aea8967e71a4ba52be0bbf724f7f7f4e28.zip hdf5-0423c4aea8967e71a4ba52be0bbf724f7f7f4e28.tar.gz hdf5-0423c4aea8967e71a4ba52be0bbf724f7f7f4e28.tar.bz2 |
Add special case when H5_VERS_SUBRELEASE is 0
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 454c260..a984a73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -338,10 +338,14 @@ set (HDF5_PACKAGE_NAME "HDF5") set (HDF5_PACKAGE_VERSION "${H5_VERS_MAJOR}.${H5_VERS_MINOR}.${H5_VERS_RELEASE}") set (HDF5_PACKAGE_VERSION_MAJOR "${H5_VERS_MAJOR}.${H5_VERS_MINOR}") set (HDF5_PACKAGE_VERSION_MINOR "${H5_VERS_RELEASE}") -if (${H5_VERS_SUBRELEASE} STREQUAL "") - set (HDF5_PACKAGE_VERSION_STRING "${HDF5_PACKAGE_VERSION}") -else () +if (H5_VERS_SUBRELEASE) set (HDF5_PACKAGE_VERSION_STRING "${HDF5_PACKAGE_VERSION}-${H5_VERS_SUBRELEASE}") +else () + if (${H5_VERS_SUBRELEASE} STREQUAL "") + set (HDF5_PACKAGE_VERSION_STRING "${HDF5_PACKAGE_VERSION}") + else () + set (HDF5_PACKAGE_VERSION_STRING "${HDF5_PACKAGE_VERSION}-${H5_VERS_SUBRELEASE}") + endif () endif () set (HDF5_LIB_PACKAGE_SOVERSION "${H5_LIB_SOVERS_MAJOR}.${H5_LIB_SOVERS_RELEASE}.${H5_LIB_SOVERS_MINOR}") set (HDF5_LIB_PACKAGE_SOVERSION_MAJOR "${H5_LIB_SOVERS_MAJOR}") |