From 6f41e5cc7c57abaa22f1c6d2235ead83cdf7c5b3 Mon Sep 17 00:00:00 2001 From: Alvin <52727318+AlvinZhangH@users.noreply.github.com> Date: Thu, 16 Jan 2020 08:38:35 +0800 Subject: [libpqxx] Fix lib name on Linux (#9051) * [libpqxx]Fix lib name on Linux. * [libpqxx] Delete judgement APPLE --- ports/libpqxx/CMakeLists.txt | 4 ++++ ports/libpqxx/CONTROL | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ports/libpqxx/CMakeLists.txt b/ports/libpqxx/CMakeLists.txt index 056684d23..d8b9ce4f5 100644 --- a/ports/libpqxx/CMakeLists.txt +++ b/ports/libpqxx/CMakeLists.txt @@ -40,6 +40,10 @@ else() set(SHARED_DEFINITION "") endif() +IF(UNIX) + set(TARGET pqxx_static) +ENDIF() + add_library(${TARGET} ${SRCS}) target_compile_definitions(${TARGET} PRIVATE -DPQXX_INTERNAL -DNOMINMAX ${SHARED_DEFINITION}) target_include_directories(${TARGET} PRIVATE include ${LIBPQ_FE_H} ${POSTGRES_EXT_H} ${CMAKE_BINARY_DIR}) diff --git a/ports/libpqxx/CONTROL b/ports/libpqxx/CONTROL index 3574a541b..1742189b9 100644 --- a/ports/libpqxx/CONTROL +++ b/ports/libpqxx/CONTROL @@ -1,5 +1,5 @@ Source: libpqxx -Version: 6.4.5 +Version: 6.4.5-1 Homepage: https://github.com/jtv/libpqxx Description: The official C++ client API for PostgreSQL Build-Depends: libpq -- cgit v1.2.3