diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-04-07 12:04:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 12:04:39 -0700 |
commit | b314c0df3d05b362d484fffe5cc03ca98584e084 (patch) | |
tree | f3c20d64b087fcc16af0b58b8d223427497e9b37 | |
parent | cc9d03297177eb8504c7353db673b9dc6f64ea07 (diff) | |
parent | 1b967bc947195a7fa50392c0093da57fed0afbac (diff) |
Merge pull request #780 from yossigo/fix/cmake_ssl_so_version
CMake: Set hiredis_ssl shared object version.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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) |