2016-10-26 11:49:01 -07:00
|
|
|
#header-only library
|
2016-10-26 11:59:46 -07:00
|
|
|
include(vcpkg_common_functions)
|
2017-12-30 01:22:14 +03:00
|
|
|
|
2018-11-21 02:19:09 +03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO chriskohlhoff/asio
|
2019-01-09 20:52:58 +03:00
|
|
|
REF asio-1-12-2
|
|
|
|
SHA512 7c2e213ff154bb2e5776b37906d437a62206f973316c94706e6d42e3c2f0866e7d97f3e40225ab5f28bf2c4a33fa0b38a4b75421aef86ddf9f2da0811caa2d00
|
2018-11-21 02:19:09 +03:00
|
|
|
HEAD_REF master
|
2016-10-03 19:03:45 -05:00
|
|
|
)
|
|
|
|
|
2019-06-05 01:01:27 +02:00
|
|
|
# CMake install
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/asio")
|
|
|
|
file(INSTALL
|
|
|
|
${CMAKE_CURRENT_LIST_DIR}/asio-config.cmake
|
|
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/asio/
|
|
|
|
)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
|
|
|
|
2016-10-03 19:03:45 -05:00
|
|
|
# Handle copyright
|
2018-11-21 02:19:09 +03:00
|
|
|
file(INSTALL ${SOURCE_PATH}/asio/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2016-10-03 19:03:45 -05:00
|
|
|
|