diff options
Diffstat (limited to 'tls')
-rw-r--r-- | tls/CMakeLists.txt | 6 |
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) |
22 | endif() | 22 | endif() |
23 | 23 | ||
24 | if(NOT "${OPENSSLDIR}" STREQUAL "") | ||
25 | add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\") | ||
26 | else() | ||
27 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") | ||
28 | endif() | ||
29 | |||
24 | if (BUILD_SHARED) | 30 | if (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>) |