2021-03-24 20:53:27 +01:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO offa/influxdb-cxx
|
2023-05-17 23:39:49 +08:00
|
|
|
REF "v${VERSION}"
|
2024-10-29 02:28:10 -07:00
|
|
|
SHA512 ac16178a17ac9b43a23d64f56d0012aeda896d3065246166abdef1441cf466453a6972c5820411936dcfa10a21505b654dfe981449c1d4cc169807f1db5d099f
|
2021-03-24 20:53:27 +01:00
|
|
|
HEAD_REF master
|
2024-10-29 02:28:10 -07:00
|
|
|
PATCHES
|
|
|
|
fix-dllexports.patch
|
|
|
|
268.patch # https://github.com/offa/influxdb-cxx/pull/268
|
2021-03-24 20:53:27 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
boost INFLUXCXX_WITH_BOOST
|
|
|
|
)
|
|
|
|
|
2021-11-15 23:36:13 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-03-24 20:53:27 +01:00
|
|
|
OPTIONS
|
|
|
|
-DINFLUXCXX_TESTING=OFF
|
|
|
|
-DINFLUXCXX_SYSTEMTEST=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
2021-11-15 23:36:13 +01:00
|
|
|
vcpkg_cmake_install()
|
2021-03-24 20:53:27 +01:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
2021-12-03 11:54:47 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME InfluxDB CONFIG_PATH lib/cmake/InfluxDB)
|
2021-03-24 20:53:27 +01:00
|
|
|
|
2023-05-17 23:39:49 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|