aboutsummaryrefslogtreecommitdiff
path: root/tls
diff options
context:
space:
mode:
Diffstat (limited to 'tls')
-rw-r--r--tls/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tls/CMakeLists.txt b/tls/CMakeLists.txt
index 929d30c..53c8be7 100644
--- a/tls/CMakeLists.txt
+++ b/tls/CMakeLists.txt
@@ -21,6 +21,12 @@ if(NOT HAVE_STRSEP)
21 set(TLS_SRC ${TLS_SRC} strsep.c) 21 set(TLS_SRC ${TLS_SRC} strsep.c)
22endif() 22endif()
23 23
24if(NOT "${OPENSSLDIR}" STREQUAL "")
25 add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\")
26else()
27 add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\")
28endif()
29
24if (BUILD_SHARED) 30if (BUILD_SHARED)
25 add_library(tls-objects OBJECT ${TLS_SRC}) 31 add_library(tls-objects OBJECT ${TLS_SRC})
26 add_library(tls STATIC $<TARGET_OBJECTS:tls-objects>) 32 add_library(tls STATIC $<TARGET_OBJECTS:tls-objects>)