vcpkg/ports/influxdb-cxx/portfile.cmake
Jia Yue Hua 4d184cfdc7
[influxdb-cxx] update to 0.7.2 (#37108)
- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md)
- [X] SHA512s are updated for each updated download
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version~
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~
- [ ] ~Any patches that are no longer applied are deleted from the
port's directory.~
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.
2024-03-05 00:22:44 -08:00

30 lines
824 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO offa/influxdb-cxx
REF "v${VERSION}"
SHA512 ac16178a17ac9b43a23d64f56d0012aeda896d3065246166abdef1441cf466453a6972c5820411936dcfa10a21505b654dfe981449c1d4cc169807f1db5d099f
HEAD_REF master
PATCHES fix-dllexports.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
boost INFLUXCXX_WITH_BOOST
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DINFLUXCXX_TESTING=OFF
-DINFLUXCXX_SYSTEMTEST=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(PACKAGE_NAME InfluxDB CONFIG_PATH lib/cmake/InfluxDB)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")