2018-01-03 06:43:06 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jtv/libpqxx
|
2023-10-10 06:14:25 +08:00
|
|
|
REF "${VERSION}"
|
2024-08-13 07:40:09 +08:00
|
|
|
SHA512 f4035b1d976580f0ca101d484940f18a5af8299e249b754098c6c4bbe8198a855013112965300f7d978ca127b75547f2e2f4fb567b77114f010392952f0ed642
|
2018-01-03 06:43:06 +08:00
|
|
|
HEAD_REF master
|
2021-09-11 09:29:46 +08:00
|
|
|
PATCHES
|
|
|
|
fix_build_with_vs2017.patch
|
2018-01-03 06:43:06 +08:00
|
|
|
)
|
|
|
|
|
2021-09-11 09:29:46 +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
|
|
|
|
2021-09-11 09:29:46 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DSKIP_BUILD_TEST=ON
|
2018-01-03 06:43:06 +08:00
|
|
|
)
|
|
|
|
|
2021-09-11 09:29:46 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-01-03 06:43:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-11 09:29:46 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libpqxx)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-10-17 03:36:47 +08:00
|
|
|
|
2023-10-10 06:14:25 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|