vcpkg/ports/libpqxx/portfile.cmake

29 lines
881 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-10-10 06:14:25 +08:00
REF "${VERSION}"
SHA512 134e28177f6a205c8a45462fa6b3cb4c407ab8f03a45708400fdc9f567d2ba1fae9cce9d541bdccd46694bf5d1b8dfd72bc6de5f6c915181909623357f86ce47
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")
2023-10-10 06:14:25 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
vcpkg_fixup_pkgconfig()