diff Resources/CMake/PostgreSQLConfiguration.cmake @ 81:515a783630df

injecting fix to issue #105 into the mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 10 Jan 2019 13:32:34 +0100
parents 714c5d2bee76
children ff2d56d37bfd
line wrap: on
line diff
--- a/Resources/CMake/PostgreSQLConfiguration.cmake	Mon Dec 24 13:35:26 2018 +0100
+++ b/Resources/CMake/PostgreSQLConfiguration.cmake	Thu Jan 10 13:32:34 2019 +0100
@@ -230,6 +230,12 @@
     endif()
 
 
+    if (ENABLE_SSL)
+      set(HAVE_LIBSSL 1)
+      set(HAVE_SSL_GET_CURRENT_COMPRESSION 1)
+      set(USE_OPENSSL 1)
+    endif()
+
     execute_process(
       COMMAND 
       ${PYTHON_EXECUTABLE}
@@ -299,6 +305,12 @@
     ${LIBPQ_SOURCES_DIR}/src/backend/utils/mb/wchar.c
     )
 
+  if (ENABLE_SSL)
+    list(APPEND LIBPQ_SOURCES
+      ${LIBPQ_SOURCES_DIR}/src/interfaces/libpq/fe-secure-openssl.c
+      )
+  endif()
+
 
   if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
     LIST(APPEND LIBPQ_SOURCES