2018-10-26 06:24:32 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
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
|
|
|
|
REF 1.6.1
|
|
|
|
SHA512 01c9c172e58a16b25af07c6bde593507792726aca28a9b202ed9531d51cd7e77c7e7d536102e50265d66de96e9708616075902dfdcfc72983758755381bad707
|
|
|
|
HEAD_REF master
|
2019-03-01 15:53:42 +08:00
|
|
|
PATCHES fix-install.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
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/socket-io-client/copyright COPYONLY)
|