mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 06:59:01 +08:00
59a435bcca
- [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. - [x] The "supports" clause reflects platforms that may be fixed by this new version. - [x] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [x] 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.
34 lines
952 B
CMake
34 lines
952 B
CMake
set(VCPKG_BUILD_TYPE release) #header-only
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO redboltz/async_mqtt
|
|
REF "${VERSION}"
|
|
SHA512 3d0e062f5903cb9a5a5d14780603454fa292b5f3d18a58baef1825bafd2fc6bc89103a329362d4a86e40e1177ad36e9f7c4c1ab33be4b9f110681fcf150264e2
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
tls ASYNC_MQTT_USE_TLS
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DASYNC_MQTT_BUILD_TOOLS=OFF
|
|
-DASYNC_MQTT_BUILD_EXAMPLES=OFF
|
|
-DASYNC_MQTT_BUILD_UNIT_TESTS=OFF
|
|
-DASYNC_MQTT_BUILD_SYSTEM_TESTS=OFF
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH "lib/cmake/async_mqtt_iface")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|