diff --git a/ports/libpqxx/CMakeLists.txt b/ports/libpqxx/CMakeLists.txt index a3e6ae3f484..00575c4afae 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 9acdf814655..f118a488b8b 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]