summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Brewer <jzb0012@auburn.edu>2019-01-22 15:39:24 -0600
committerMark Nunberg <mnunberg@haskalah.org>2019-02-20 05:01:09 -0500
commitebe1657c8f76b4940c135ca26f40ffd06835c363 (patch)
tree22d9aad222ed535022cd73319ea68c3e116ad27b
parent7d38176bdbe55621dfb547d3d481c700dcdba721 (diff)
Obey HIREDIS_SONAME for shared library
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f40bbc3..89ae962 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ ENDMACRO(getVersionBit)
getVersionBit(HIREDIS_MAJOR)
getVersionBit(HIREDIS_MINOR)
getVersionBit(HIREDIS_PATCH)
+getVersionBit(HIREDIS_SONAME)
SET(VERSION "${HIREDIS_MAJOR}.${HIREDIS_MINOR}.${HIREDIS_PATCH}")
MESSAGE("Detected version: ${VERSION}")
@@ -30,7 +31,7 @@ ADD_LIBRARY(hiredis SHARED
SET_TARGET_PROPERTIES(hiredis
PROPERTIES
- VERSION "${VERSION}")
+ VERSION "${HIREDIS_SONAME}")
CONFIGURE_FILE(hiredis.pc.in hiredis.pc @ONLY)