vcpkg/ports/mqtt-cpp/portfile.cmake
sandro97git 3f567b71f6
[mqtt-cpp] update to 9.0.0 (#16863)
Co-authored-by: Sandro Scherer <sandro.scherer@siemens.com>
2021-03-24 13:19:20 -07:00

25 lines
755 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO redboltz/mqtt_cpp
REF v9.0.0
SHA512 4c9bef6abdb6bdec6ac60976f78e3e02c29d11c74cad0d3191e1d9b7befd327cd06f8a62e398d5997358b7e6974af3d6a73f68de47dd07ff099d46ba35fc84d8
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DMQTT_BUILD_EXAMPLES=OFF
-DMQTT_BUILD_TESTS=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/mqtt_cpp_iface)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)