From f075c6b1ee0fd618fb79ba783f9f36530c04d90c Mon Sep 17 00:00:00 2001 From: alexander-smyslov <37107500+alexander-smyslov@users.noreply.github.com> Date: Thu, 21 May 2020 20:31:00 +0200 Subject: [libpqxx] linux support (#11442) * Add files via upload * [new port] avro-cpp * add boost-format * remove comments * remove comments * [libpqxx] linux support * fix * fix * update version * correct the indentation * Update ports/libpqxx/CMakeLists.txt Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Alexander Smyslov Co-authored-by: nicole mazzuca Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> --- ports/libpqxx/CMakeLists.txt | 4 +++- ports/libpqxx/CONTROL | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ports/libpqxx/CMakeLists.txt b/ports/libpqxx/CMakeLists.txt index a3e6ae3f4..00575c4af 100644 --- a/ports/libpqxx/CMakeLists.txt +++ b/ports/libpqxx/CMakeLists.txt @@ -34,7 +34,9 @@ file(GLOB SRCS "${PROJECT_SOURCE_DIR}/src/*.cxx") if(BUILD_SHARED_LIBS) set(TARGET libpqxx) set(SHARED_DEFINITION -DPQXX_SHARED) - list(APPEND SRCS "${PROJECT_SOURCE_DIR}/win32/libpqxx.cxx") + if(MSVC) + list(APPEND SRCS "${PROJECT_SOURCE_DIR}/win32/libpqxx.cxx") + endif() else() set(TARGET libpqxx_static) set(SHARED_DEFINITION "") diff --git a/ports/libpqxx/CONTROL b/ports/libpqxx/CONTROL index 9acdf8146..f118a488b 100644 --- a/ports/libpqxx/CONTROL +++ b/ports/libpqxx/CONTROL @@ -1,5 +1,5 @@ Source: libpqxx -Version: 6.4.5-2 +Version: 6.4.5-3 Homepage: https://github.com/jtv/libpqxx Description: The official C++ client API for PostgreSQL Build-Depends: libpq[core] -- cgit v1.2.3