2018-10-20 00:11:27 +08:00
|
|
|
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mandreyel/mio
|
2023-01-25 08:37:29 +08:00
|
|
|
REF 3f86a95c0784d73ce6815237ec33ed25f233b643
|
|
|
|
SHA512 18bbc41d5c3b29ecafe19cef29687380d8f4f27279af08edb0d5e65ee1d71162f3cf75d8efaa324cd11301f3f49fadaec3e4c1514607d5065ddd7a65bf32ee2a
|
2018-10-20 00:11:27 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-01-25 08:37:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-10-20 00:11:27 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dmio.tests=OFF
|
|
|
|
)
|
|
|
|
|
2023-01-25 08:37:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-10-20 00:11:27 +08:00
|
|
|
|
2023-01-25 08:37:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/mio)
|
2018-10-20 00:11:27 +08:00
|
|
|
|
2023-01-25 08:37:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2018-10-20 00:11:27 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-01-25 08:37:29 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|