From 1b967bc947195a7fa50392c0093da57fed0afbac Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Tue, 7 Apr 2020 21:19:00 +0300 Subject: [PATCH] CMake: Set hiredis_ssl shared object version. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48e5920..04a03ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,9 @@ IF(ENABLE_SSL) FIND_PACKAGE(OpenSSL REQUIRED) ADD_LIBRARY(hiredis_ssl SHARED ssl.c) + SET_TARGET_PROPERTIES(hiredis_ssl + PROPERTIES + VERSION "${HIREDIS_SONAME}") TARGET_INCLUDE_DIRECTORIES(hiredis_ssl PRIVATE "${OPENSSL_INCLUDE_DIR}") TARGET_LINK_LIBRARIES(hiredis_ssl PRIVATE ${OPENSSL_LIBRARIES}) CONFIGURE_FILE(hiredis_ssl.pc.in hiredis_ssl.pc @ONLY)