2020-01-23 03:57:21 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO redboltz/mqtt_cpp
|
2022-11-04 06:14:46 +08:00
|
|
|
REF v13.1.0
|
2022-06-14 10:07:14 +08:00
|
|
|
SHA512
|
2022-11-04 06:14:46 +08:00
|
|
|
71907ba013d844d3b00c932b8598480067c0b2a2088ea95ae6d65a548145b851f6a25135f4e3c1e61cfc3831b024308e872f194bc9af7febe0036edc2e63b9d4
|
2020-01-23 03:57:21 +08:00
|
|
|
HEAD_REF master
|
2022-11-04 06:14:46 +08:00
|
|
|
)
|
2020-01-23 03:57:21 +08:00
|
|
|
|
2021-11-16 08:32:11 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-23 03:57:21 +08:00
|
|
|
OPTIONS
|
2022-06-14 10:07:14 +08:00
|
|
|
-DMQTT_BUILD_EXAMPLES=OFF
|
|
|
|
-DMQTT_BUILD_TESTS=OFF
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
2022-11-04 06:14:46 +08:00
|
|
|
)
|
2020-01-23 03:57:21 +08:00
|
|
|
|
2021-11-16 08:32:11 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-02-04 06:22:52 +08:00
|
|
|
|
2022-06-14 10:07:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME mqtt_cpp_iface CONFIG_PATH lib/cmake/mqtt_cpp_iface)
|
2021-03-25 04:19:20 +08:00
|
|
|
|
2022-11-04 06:14:46 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt")
|