mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 00:09:00 +08:00
f3c11016ef
* [hiredis] Support building static * update baseline * update baseline
23 lines
665 B
Diff
23 lines
665 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 9e78894..87aba5b 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -22,7 +22,7 @@ PROJECT(hiredis VERSION "${VERSION}")
|
|
|
|
SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")
|
|
|
|
-ADD_LIBRARY(hiredis SHARED
|
|
+ADD_LIBRARY(hiredis
|
|
async.c
|
|
dict.c
|
|
hiredis.c
|
|
@@ -60,7 +60,7 @@ IF(ENABLE_SSL)
|
|
ENDIF()
|
|
ENDIF()
|
|
FIND_PACKAGE(OpenSSL REQUIRED)
|
|
- ADD_LIBRARY(hiredis_ssl SHARED
|
|
+ ADD_LIBRARY(hiredis_ssl
|
|
ssl.c)
|
|
TARGET_INCLUDE_DIRECTORIES(hiredis_ssl PRIVATE "${OPENSSL_INCLUDE_DIR}")
|
|
TARGET_LINK_LIBRARIES(hiredis_ssl PRIVATE ${OPENSSL_LIBRARIES})
|