summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-08-24 05:32:48 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-08-24 05:42:07 (GMT)
commit6cf20e07437d12c5e036ee5b4eb04014713b89dc (patch)
tree99722f80fddb9af6aadeeabc6a703b29aea9911e
parentcfdf367c5121c2e1c1ccac504f66e44c22ddc9b8 (diff)
downloadhdf5-6cf20e07437d12c5e036ee5b4eb04014713b89dc.zip
hdf5-6cf20e07437d12c5e036ee5b4eb04014713b89dc.tar.gz
hdf5-6cf20e07437d12c5e036ee5b4eb04014713b89dc.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.
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd7b264..454c260 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}")