diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2020-08-24 05:32:48 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2020-08-24 05:32:48 (GMT) |
commit | 9b63dcb5c88442311fef59299c207638268b4738 (patch) | |
tree | a60ace157fb00aa9956d0f0e834791278d286219 /CMakeLists.txt | |
parent | 4d5354afcddf4e8858dfb496a5b1c113ee960cb6 (diff) | |
download | hdf5-9b63dcb5c88442311fef59299c207638268b4738.zip hdf5-9b63dcb5c88442311fef59299c207638268b4738.tar.gz hdf5-9b63dcb5c88442311fef59299c207638268b4738.tar.bz2 |
Condition if (H5_VERS_SUBRELEASE) is incorrectly false when
H5_VERS_SUBRELEASE is 0, a valid value for H5_VERS_SUBRELEASE.
Updated to if (${H5_VERS_SUBRELEASE} STREQUAL "") with corresponding
reversal of action statements to avoid NOT.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c52c50..13b96e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -338,10 +338,10 @@ 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) - 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 () 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}") |