Obey HIREDIS_SONAME for shared library

Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
This commit is contained in:
Justin Brewer 2019-01-22 15:39:24 -06:00 committed by Mark Nunberg
parent 7d38176bdb
commit ebe1657c8f

View File

@ -11,6 +11,7 @@ ENDMACRO(getVersionBit)
getVersionBit(HIREDIS_MAJOR) getVersionBit(HIREDIS_MAJOR)
getVersionBit(HIREDIS_MINOR) getVersionBit(HIREDIS_MINOR)
getVersionBit(HIREDIS_PATCH) getVersionBit(HIREDIS_PATCH)
getVersionBit(HIREDIS_SONAME)
SET(VERSION "${HIREDIS_MAJOR}.${HIREDIS_MINOR}.${HIREDIS_PATCH}") SET(VERSION "${HIREDIS_MAJOR}.${HIREDIS_MINOR}.${HIREDIS_PATCH}")
MESSAGE("Detected version: ${VERSION}") MESSAGE("Detected version: ${VERSION}")
@ -30,7 +31,7 @@ ADD_LIBRARY(hiredis SHARED
SET_TARGET_PROPERTIES(hiredis SET_TARGET_PROPERTIES(hiredis
PROPERTIES PROPERTIES
VERSION "${VERSION}") VERSION "${HIREDIS_SONAME}")
CONFIGURE_FILE(hiredis.pc.in hiredis.pc @ONLY) CONFIGURE_FILE(hiredis.pc.in hiredis.pc @ONLY)