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

This commit is contained in:
charlie barto 2016-11-16 12:12:04 -05:00 committed by Charlie Barto
parent da65430a30
commit b81c914898

View File

@ -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