diff options
| author | Ian P. Cooke <ipc@informatic.io> | 2019-09-06 16:01:51 -0500 |
|---|---|---|
| committer | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-09-06 14:01:51 -0700 |
| commit | 5a476f9c443d83f8224539e65afbaf66967c1d09 (patch) | |
| tree | 01ab75dbaecb184d9669c835511d2de5541cf4a0 | |
| parent | 257bd7a60f0a906dc71c26146fc106babca4fb6d (diff) | |
| download | vcpkg-5a476f9c443d83f8224539e65afbaf66967c1d09.tar.gz vcpkg-5a476f9c443d83f8224539e65afbaf66967c1d09.zip | |
libpq requires HAVE_CRYPTO_LOCK for thread safety with openssl <1.1.0 (#8076)
| -rw-r--r-- | ports/libpq/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/libpq/CMakeLists.txt b/ports/libpq/CMakeLists.txt index 3d5d6e508..d25a314c4 100644 --- a/ports/libpq/CMakeLists.txt +++ b/ports/libpq/CMakeLists.txt @@ -134,7 +134,7 @@ set(CMAKE_DEBUG_POSTFIX "d") set(CMAKE_INCLUDE_CURRENT_DIR ON) add_library(libpq ${pg_port_src} ${pg_backend_src} ${pg_libpq_src}) -target_compile_definitions(libpq PRIVATE -DFRONTEND -DENABLE_THREAD_SAFETY -DUSE_OPENSSL -D_CRT_SECURE_NO_WARNINGS) +target_compile_definitions(libpq PRIVATE -DFRONTEND -DENABLE_THREAD_SAFETY -DUSE_OPENSSL -DHAVE_CRYPTO_LOCK -D_CRT_SECURE_NO_WARNINGS) if(CMAKE_SYSTEM_NAME STREQUAL "Linux") target_compile_definitions(libpq PRIVATE -D_GNU_SOURCE) endif() |
