From b81c91489841cb3315b4111f5c9c077a36386151 Mon Sep 17 00:00:00 2001 From: charlie barto Date: Wed, 16 Nov 2016 12:12:04 -0500 Subject: [PATCH] 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 --- ports/libpq/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 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