summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-08-23 19:58:09 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-08-23 19:58:09 (GMT)
commit4d5354afcddf4e8858dfb496a5b1c113ee960cb6 (patch)
treedd55c077f2247b1ace589760814006ffc769d1c4
parent2ac49e2fec3a5cc39a2037b80d49ceb3a1e4df5e (diff)
downloadhdf5-4d5354afcddf4e8858dfb496a5b1c113ee960cb6.zip
hdf5-4d5354afcddf4e8858dfb496a5b1c113ee960cb6.tar.gz
hdf5-4d5354afcddf4e8858dfb496a5b1c113ee960cb6.tar.bz2
Add hypen to subrelease regex
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac291fa..6c52c50 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -236,7 +236,7 @@ string (REGEX REPLACE ".*#define[ \t]+H5_VERS_MINOR[ \t]+([0-9]*).*$"
"\\1" H5_VERS_MINOR ${_h5public_h_contents})
string (REGEX REPLACE ".*#define[ \t]+H5_VERS_RELEASE[ \t]+([0-9]*).*$"
"\\1" H5_VERS_RELEASE ${_h5public_h_contents})
-string (REGEX REPLACE ".*#define[ \t]+H5_VERS_SUBRELEASE[ \t]+\"([0-9A-Za-z._]*)\".*$"
+string (REGEX REPLACE ".*#define[ \t]+H5_VERS_SUBRELEASE[ \t]+\"([0-9A-Za-z._\-]*)\".*$"
"\\1" H5_VERS_SUBRELEASE ${_h5public_h_contents})
#message (STATUS "VERSION: ${H5_VERS_MAJOR}.${H5_VERS_MINOR}.${H5_VERS_RELEASE}-${H5_VERS_SUBRELEASE}")