vcpkg/ports/asyncplusplus/portfile.cmake

22 lines
656 B
CMake
Raw Permalink Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Amanieu/asyncplusplus
REF v1.2
SHA512 4b59ef805d4683631ef2ba51039deb210d9ba28b35021489560b0f2da6f75a68da8cb676807f9831047c997673556f69fdca0ae2081996274015e708fd6ff55e
HEAD_REF master
)
2022-12-02 18:06:16 +01:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
2022-12-02 18:06:16 +01:00
vcpkg_cmake_install()
2022-12-02 18:06:16 +01:00
vcpkg_cmake_config_fixup(CONFIG_PATH cmake PACKAGE_NAME async++)
2022-12-02 18:06:16 +01:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
2022-12-02 18:06:16 +01:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)