summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-05-12 13:35:07 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-05-12 13:35:07 (GMT)
commit9a39f388e2760efe2959d5a9d95b159b3c1f99c9 (patch)
treeb037951a3b1eb7771fa75f7f2e958df952df6e6f /CMakeLists.txt
parentd950dfbbfef8d1a9a19de49e17e6ee33a5455d4a (diff)
downloadhdf5-9a39f388e2760efe2959d5a9d95b159b3c1f99c9.zip
hdf5-9a39f388e2760efe2959d5a9d95b159b3c1f99c9.tar.gz
hdf5-9a39f388e2760efe2959d5a9d95b159b3c1f99c9.tar.bz2
[svn-r20799] Correct version subrelease string test
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d7c10f..7a79a91 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -172,11 +172,11 @@ 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})
+IF (NOT "${H5_VERS_SUBRELEASE}" STREQUAL "")
SET (HDF5_PACKAGE_VERSION_STRING "${HDF5_PACKAGE_VERSION}-${H5_VERS_SUBRELEASE}")
-ELSE (${H5_VERS_SUBRELEASE})
+ELSE (NOT "${H5_VERS_SUBRELEASE}" STREQUAL "")
SET (HDF5_PACKAGE_VERSION_STRING "${HDF5_PACKAGE_VERSION}")
-ENDIF (${H5_VERS_SUBRELEASE})
+ENDIF (NOT "${H5_VERS_SUBRELEASE}" STREQUAL "")
SET (HDF5_PACKAGE_STRING "${HDF5_PACKAGE_NAME} ${HDF5_PACKAGE_VERSION_STRING}")
SET (HDF5_PACKAGE_TARNAME "hdf5")
SET (HDF5_PACKAGE_URL "http://www.hdfgroup.org")