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
|
2022-08-20 04:40:12 +08:00
|
|
|
REF dbb4547d3160368feaaf55c3338ad085a8f968b8
|
|
|
|
SHA512 cbb2a4742d16ba9ee72ca49a56605690ed620c978f51012e0d655a86b110a557b196ffc55af8b0440c1d7cd76d9dffe6f85abd0af300095608434eb9394dc68b
|
2018-10-26 06:24:32 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-27 14:34:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-08-20 04:40:12 +08:00
|
|
|
OPTIONS
|
|
|
|
-DUSE_SUBMODULES=OFF
|
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include
|
2018-10-26 06:24:32 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:34:56 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-08-20 04:40:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME sioclient CONFIG_PATH lib/cmake/sioclient)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/sioclient/sioclientConfig.cmake"
|
|
|
|
"include(CMakeFindDependencyMacro)"
|
|
|
|
[[include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(websocketpp CONFIG)
|
|
|
|
find_dependency(asio CONFIG)
|
|
|
|
find_dependency(RapidJSON CONFIG)
|
|
|
|
find_dependency(OpenSSL)]])
|
2018-10-26 06:24:32 +08:00
|
|
|
|
2021-10-27 14:34:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-10-26 06:24:32 +08:00
|
|
|
|
2021-10-27 14:34:56 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|