diff options
| author | Alvin <52727318+AlvinZhangH@users.noreply.github.com> | 2020-01-16 08:38:35 +0800 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2020-01-15 16:38:35 -0800 |
| commit | 6f41e5cc7c57abaa22f1c6d2235ead83cdf7c5b3 (patch) | |
| tree | 3413db27c438f77b966c30fb28abf6a4416cc6f4 | |
| parent | ed2d8564f0822115695a024f4e8ece2944e8bb4e (diff) | |
| download | vcpkg-6f41e5cc7c57abaa22f1c6d2235ead83cdf7c5b3.tar.gz vcpkg-6f41e5cc7c57abaa22f1c6d2235ead83cdf7c5b3.zip | |
[libpqxx] Fix lib name on Linux (#9051)
* [libpqxx]Fix lib name on Linux.
* [libpqxx] Delete judgement APPLE
| -rw-r--r-- | ports/libpqxx/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | ports/libpqxx/CONTROL | 2 |
2 files changed, 5 insertions, 1 deletions
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 |
