diff options
| author | Alexander Kaspar <alexander.kaspar@gmail.com> | 2016-12-05 09:13:22 +0100 |
|---|---|---|
| committer | Alexander Kaspar <alexander.kaspar@gmail.com> | 2016-12-05 09:13:22 +0100 |
| commit | a985fc2de8192fb159c8f90ca08fd513b09b8b3a (patch) | |
| tree | 69f26c354e387750da929a87ec9c1a124b17fe9d /ports/libpq | |
| parent | c5b6f019bde3ab43b6a4f7e7e5477d5209af7e1f (diff) | |
| parent | a710f67e5281480ab22d0ef372d376696f5fc8ab (diff) | |
| download | vcpkg-a985fc2de8192fb159c8f90ca08fd513b09b8b3a.tar.gz vcpkg-a985fc2de8192fb159c8f90ca08fd513b09b8b3a.zip | |
Merge branch 'master' into qca
Diffstat (limited to 'ports/libpq')
| -rw-r--r-- | ports/libpq/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | ports/libpq/portfile.cmake | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ports/libpq/CMakeLists.txt b/ports/libpq/CMakeLists.txt index 517039d8f..54e929a5b 100644 --- a/ports/libpq/CMakeLists.txt +++ b/ports/libpq/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.5) project(libpq VERSION 9.6.1 LANGUAGES C) find_package(OpenSSL REQUIRED) +set(CMAKE_DEBUG_POSTFIX "d") configure_file(${CMAKE_CURRENT_LIST_DIR}/src/include/pg_config.h.win32 ${CMAKE_CURRENT_LIST_DIR}/src/include/pg_config.h) configure_file(${CMAKE_CURRENT_LIST_DIR}/src/include/pg_config_ext.h.win32 ${CMAKE_CURRENT_LIST_DIR}/src/include/pg_config_ext.h) configure_file(${CMAKE_CURRENT_LIST_DIR}/src/include/port/win32.h ${CMAKE_CURRENT_LIST_DIR}/src/include/pg_config_os.h) @@ -61,11 +62,14 @@ set(pg_libpq_catalog_interface src/include/catalog/genbki.h ) set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_DEBUG_POSTFIX "d") +set(CMAKE_INCLUDE_CURRENT_DIR ON) 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 diff --git a/ports/libpq/portfile.cmake b/ports/libpq/portfile.cmake index 67a45dba0..50ac67bb7 100644 --- a/ports/libpq/portfile.cmake +++ b/ports/libpq/portfile.cmake @@ -29,4 +29,5 @@ file(COPY ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/lib file(RENAME ${CURRENT_PACKAGES_DIR}/share/libpq/COPYRIGHT ${CURRENT_PACKAGES_DIR}/share/libpq/copyright) -vcpkg_copy_pdbs() + +vcpkg_copy_pdbs()
\ No newline at end of file |
