2022-10-19 09:38:59 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
2019-09-27 03:56:46 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-09-17 22:53:30 +08:00
|
|
|
REPO ClickHouse/clickhouse-cpp
|
2022-10-19 09:38:59 +08:00
|
|
|
REF v2.2.1
|
|
|
|
SHA512 cf9f14e6bdbf2b739a25004c8f30ef8057cf4afa618c91fc2672059869cbbbdafb72f3027863b3f731f7f2cc239d5690e5e87301bf7930b79fe71d7a4ae3f833
|
2019-09-27 03:56:46 +08:00
|
|
|
HEAD_REF master
|
2022-10-19 09:38:59 +08:00
|
|
|
PATCHES
|
|
|
|
fix-deps-and-build-type.patch
|
|
|
|
fix-uwp.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
openssl WITH_OPENSSL
|
2019-09-27 03:56:46 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 22:53:30 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-10-19 09:38:59 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
2019-09-27 03:56:46 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 22:53:30 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-09-27 03:56:46 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-17 22:53:30 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2019-09-27 03:56:46 +08:00
|
|
|
|
2022-10-19 09:38:59 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|