mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 10:19:02 +08:00
28 lines
894 B
CMake
28 lines
894 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO jtv/libpqxx
|
|
REF e63674fec320624e0bea32e5e5b7b5ff2c6c269d # 7.2.1
|
|
SHA512 681ae839f6c6d4706ec59eab60516ce7c43abbfa0115a50ce2dc4c09b5107762ae71f00aa56a8b6019965c3138deaf3c42cb761e7fddd4d522169d92a11c0867
|
|
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
|
|
OPTIONS -DSKIP_BUILD_TEST=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
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)
|