2020-01-23 03:57:21 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO redboltz/mqtt_cpp
|
2023-11-01 02:56:37 +08:00
|
|
|
REF v${VERSION}
|
2022-06-14 10:07:14 +08:00
|
|
|
SHA512
|
2023-11-01 02:56:37 +08:00
|
|
|
70da1f78a032db458b8744d1ed7c3eec97924ad78127ee5aa58cd4fb8e33351874f9d4b2f08aa94a202ee971d3f94d53167da307af3e82b9488aa89796f981e4
|
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")
|