Mercurial > hg > orthanc-databases
comparison 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 |
comparison
equal
deleted
inserted
replaced
67:714c5d2bee76 | 81:515a783630df |
---|---|
228 unset(HAVE_NETINET_TCP_H CACHE) | 228 unset(HAVE_NETINET_TCP_H CACHE) |
229 check_include_files("sys/socket.h;netinet/tcp.h" HAVE_NETINET_TCP_H) | 229 check_include_files("sys/socket.h;netinet/tcp.h" HAVE_NETINET_TCP_H) |
230 endif() | 230 endif() |
231 | 231 |
232 | 232 |
233 if (ENABLE_SSL) | |
234 set(HAVE_LIBSSL 1) | |
235 set(HAVE_SSL_GET_CURRENT_COMPRESSION 1) | |
236 set(USE_OPENSSL 1) | |
237 endif() | |
238 | |
233 execute_process( | 239 execute_process( |
234 COMMAND | 240 COMMAND |
235 ${PYTHON_EXECUTABLE} | 241 ${PYTHON_EXECUTABLE} |
236 "${CMAKE_CURRENT_LIST_DIR}/../PostgreSQL/PrepareCMakeConfigurationFile.py" | 242 "${CMAKE_CURRENT_LIST_DIR}/../PostgreSQL/PrepareCMakeConfigurationFile.py" |
237 "${LIBPQ_SOURCES_DIR}/src/include/pg_config.h.in" | 243 "${LIBPQ_SOURCES_DIR}/src/include/pg_config.h.in" |
297 ${LIBPQ_SOURCES_DIR}/src/backend/libpq/md5.c | 303 ${LIBPQ_SOURCES_DIR}/src/backend/libpq/md5.c |
298 ${LIBPQ_SOURCES_DIR}/src/backend/utils/mb/encnames.c | 304 ${LIBPQ_SOURCES_DIR}/src/backend/utils/mb/encnames.c |
299 ${LIBPQ_SOURCES_DIR}/src/backend/utils/mb/wchar.c | 305 ${LIBPQ_SOURCES_DIR}/src/backend/utils/mb/wchar.c |
300 ) | 306 ) |
301 | 307 |
308 if (ENABLE_SSL) | |
309 list(APPEND LIBPQ_SOURCES | |
310 ${LIBPQ_SOURCES_DIR}/src/interfaces/libpq/fe-secure-openssl.c | |
311 ) | |
312 endif() | |
313 | |
302 | 314 |
303 if (CMAKE_SYSTEM_NAME STREQUAL "Linux") | 315 if (CMAKE_SYSTEM_NAME STREQUAL "Linux") |
304 LIST(APPEND LIBPQ_SOURCES | 316 LIST(APPEND LIBPQ_SOURCES |
305 ${LIBPQ_SOURCES_DIR}/src/port/strlcpy.c | 317 ${LIBPQ_SOURCES_DIR}/src/port/strlcpy.c |
306 ) | 318 ) |