2018-01-03 06:43:06 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jtv/libpqxx
|
2020-12-05 08:48:25 +08:00
|
|
|
REF e63674fec320624e0bea32e5e5b7b5ff2c6c269d # 7.2.1
|
|
|
|
SHA512 681ae839f6c6d4706ec59eab60516ce7c43abbfa0115a50ce2dc4c09b5107762ae71f00aa56a8b6019965c3138deaf3c42cb761e7fddd4d522169d92a11c0867
|
2018-01-03 06:43:06 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config-public-compiler.h.in DESTINATION ${SOURCE_PATH})
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config-internal-compiler.h.in DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-10-17 03:36:47 +08:00
|
|
|
OPTIONS -DSKIP_BUILD_TEST=ON
|
2018-01-03 06:43:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-10-17 03:36:47 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/libpqxx)
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/share
|
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|