aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorcharlie barto <charlie barto>2016-11-16 12:12:04 -0500
committerCharlie Barto <bartoc@umich.edu>2016-11-17 03:00:58 -0500
commitb81c91489841cb3315b4111f5c9c077a36386151 (patch)
tree8b8e15708c1d811c598a946f36fa244d98fc18a5 /ports
parentda65430a30bb5d45e8b03794381a8a0f9401ec77 (diff)
downloadvcpkg-b81c91489841cb3315b4111f5c9c077a36386151.tar.gz
vcpkg-b81c91489841cb3315b4111f5c9c077a36386151.zip
used export all symbols instead of pq's .def files, this is so that we don't have to change the sources depending on debug or release config
Diffstat (limited to 'ports')
-rw-r--r--ports/libpq/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/ports/libpq/CMakeLists.txt b/ports/libpq/CMakeLists.txt
index 66c84b639..be42c8d32 100644
--- a/ports/libpq/CMakeLists.txt
+++ b/ports/libpq/CMakeLists.txt
@@ -49,8 +49,6 @@ set(pg_libpq_src
src/interfaces/libpq/pthread-win32.c
src/interfaces/libpq/win32.c
src/interfaces/libpq/libpq-dist.rc
- src/interfaces/libpq/libpqddll.def
- src/interfaces/libpq/libpqdll.def
)
set(pg_libpq_interface
src/include/postgres_ext.h
@@ -63,7 +61,7 @@ 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_link_libraries(libpq PRIVATE OpenSSL::SSL ws2_32 secur32 advapi32 shell32)
target_include_directories(libpq PRIVATE src/include src/include/port/win32 src/include/port/win32_msvc src/port)
-
+set_target_properties(libpq PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
install(TARGETS libpq
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib