2019-03-01 15:53:42 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-10-26 06:24:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO socketio/socket.io-client-cpp
|
2021-07-01 22:38:43 +08:00
|
|
|
REF 3.0.0
|
|
|
|
SHA512 42735d73d24546b37332d649a2633f4a1b6e004b016c45d53bd8e230a157753bb319c80a59721865b9c3dcc588b4eec3cdf4ae9f7fc2cdf290b6bb07c866552c
|
2018-10-26 06:24:32 +08:00
|
|
|
HEAD_REF master
|
2021-07-01 22:38:43 +08:00
|
|
|
PATCHES
|
|
|
|
fix-file-not-found.patch
|
|
|
|
fix-error-C3321.patch
|
2018-10-26 06:24:32 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2019-03-01 15:53:42 +08:00
|
|
|
PREFER_NINJA
|
2018-10-26 06:24:32 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-03-01 15:53:42 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-10-26 06:24:32 +08:00
|
|
|
|
2021-07-01 22:38:43 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|