summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2013-10-14 16:43:16 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2013-10-14 16:43:16 (GMT)
commit82beeef27243f1bcbbeb45631bc4ba6c510b6c92 (patch)
treed434e44c1765f0c51bdeb4a0787b61b45ee77dac /CMakeLists.txt
parent5092f5a30e90ac691222f4058213da947f8e8d8b (diff)
downloadhdf5-82beeef27243f1bcbbeb45631bc4ba6c510b6c92.zip
hdf5-82beeef27243f1bcbbeb45631bc4ba6c510b6c92.tar.gz
hdf5-82beeef27243f1bcbbeb45631bc4ba6c510b6c92.tar.bz2
[svn-r24289] Correct linux shared version numbering
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fde7616..da003c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -185,11 +185,12 @@ STRING (REGEX REPLACE ".*#define[ \t]+H5_VERS_SUBRELEASE[ \t]+\"([0-9A-Za-z._]*)
#-----------------------------------------------------------------------------
FILE (READ ${HDF5_SOURCE_DIR}/config/lt_vers.am _lt_vers_am_contents)
STRING (REGEX REPLACE ".*LT_VERS_INTERFACE[ \t]+=[ \t]+([0-9]*).*$"
- "\\1" H5_SOVERS_MAJOR ${_lt_vers_am_contents})
+ "\\1" H5_SOVERS_INTERFACE ${_lt_vers_am_contents})
STRING (REGEX REPLACE ".*LT_VERS_REVISION[ \t]+=[ \t]+([0-9]*).*$"
"\\1" H5_SOVERS_MINOR ${_lt_vers_am_contents})
STRING (REGEX REPLACE ".*LT_VERS_AGE[ \t]+=[ \t]+([0-9]*).*$"
"\\1" H5_SOVERS_RELEASE ${_lt_vers_am_contents})
+MATH(EXPR H5_SOVERS_MAJOR ${H5_SOVERS_INTERFACE}-${H5_SOVERS_RELEASE})
MESSAGE (STATUS "SOVERSION: ${H5_SOVERS_MAJOR}.${H5_SOVERS_RELEASE}.${H5_SOVERS_MINOR}")
#-----------------------------------------------------------------------------