vcpkg/ports/libpqxx/portfile.cmake

29 lines
965 B
CMake
Raw Normal View History

2018-01-03 06:43:06 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jtv/libpqxx
2023-01-19 05:27:58 +08:00
REF 17e5a6c8ac3abc05329891aaa378bd6004b9c8ee # 7.7.4
SHA512 51dc5525e801696b7716e4a4a7d8d794baa5bf7372da62a30e4b602bfb09ff53a4355bfc5e39945636cff018095d2917c9a79181bb3f824091b7780863b0073c
2018-01-03 06:43:06 +08:00
HEAD_REF master
PATCHES
fix_build_with_vs2017.patch
2018-01-03 06:43:06 +08:00
)
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}")
2018-01-03 06:43:06 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DSKIP_BUILD_TEST=ON
2018-01-03 06:43:06 +08:00
)
vcpkg_cmake_install()
2018-01-03 06:43:06 +08:00
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(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)
vcpkg_fixup_pkgconfig()