vcpkg/ports/comms/portfile.cmake
Mathis Logemann cb16030a07
[comms ] update to the next version (#14521)
* update comms to the next version; fixed github repo

* Update portfile.cmake

added the no warn as error again

* use only necessary boost packages as dependencies

* fix formatting
2020-11-12 13:04:04 -08:00

24 lines
721 B
CMake

#header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO commschamp/comms_champion
REF v3.1.2
SHA512 0610997fde77f3b244693a676323fbb63a411504e6cc9bd6faa03bfe7a8a17882a55c6114637d34f4dd88c55e07a1ca71b19a86042e7167ae15684c14260fa54
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DCC_COMMS_LIB_ONLY=ON
-DCC_NO_UNIT_TESTS=ON
)
vcpkg_install_cmake()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)