aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Barto <bartoc@umich.edu>2016-11-17 03:01:38 -0500
committerCharlie Barto <bartoc@umich.edu>2016-11-17 03:01:38 -0500
commitdcca77cd67993185e91739545d105f5141f15ea7 (patch)
tree258311fa9a78896502a79ac921b18e7ae9da0a57
parentb81c91489841cb3315b4111f5c9c077a36386151 (diff)
downloadvcpkg-dcca77cd67993185e91739545d105f5141f15ea7.tar.gz
vcpkg-dcca77cd67993185e91739545d105f5141f15ea7.zip
install types and genbki, this seems to be needed for cmake's findpostgresql
-rw-r--r--ports/libpq/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/ports/libpq/CMakeLists.txt b/ports/libpq/CMakeLists.txt
index be42c8d32..19b8787b9 100644
--- a/ports/libpq/CMakeLists.txt
+++ b/ports/libpq/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5)
project(libpq VERSION 9.6.1 LANGUAGES C)
-set(CMAKE_DEBUG_POSTFIX "d")
+#set(CMAKE_DEBUG_POSTFIX "d")
find_package(OpenSSL REQUIRED)
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)
@@ -56,6 +56,10 @@ set(pg_libpq_interface
src/include/pg_config.h
src/interfaces/libpq/libpq-fe.h
)
+set(pg_libpq_catalog_interface
+ src/include/catalog/pg_type.h
+ src/include/catalog/genbki.h
+)
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)
@@ -69,4 +73,5 @@ install(TARGETS libpq
)
if(INSTALL_INCLUDES)
install(FILES ${pg_libpq_interface} DESTINATION include)
+ install(FILES ${pg_libpq_catalog_interface} DESTINATION include/catalog)
endif() \ No newline at end of file