[microsoft-signalr] Fix msgpackConfig.cmake is not found (#31085)

* [microsoft-signalr] Fix msgpackConfig.cmake not find

* Format
This commit is contained in:
Cheney Wang 2023-04-26 13:46:39 +08:00 committed by GitHub
parent 7194cf0bd4
commit 93fc361b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 5 deletions

View File

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 676cde2..4562873 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,8 +45,8 @@ set(JSONCPP_LIB "jsoncpp_static" CACHE STRING "jsoncpp target name")
endif()
if(USE_MSGPACK)
- find_package(msgpack CONFIG REQUIRED)
- set(MSGPACK_LIB "msgpackc-cxx")
+ find_package(msgpack-cxx CONFIG REQUIRED)
+ set(MSGPACK_LIB "msgpack-cxx")
endif()
include_directories (include)

View File

@ -1,9 +1,10 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO aspnet/SignalR-Client-Cpp
REF v0.1.0-alpha4
REF "v${VERSION}"
SHA512 b87c94e8bc81781c1cfb4292f1fe3ce046a5f192a25c02104f454b533349c1c0ed965570bd749b496bb316ccb89ae51c5e7461ffa06055e71dac659fbde79456
HEAD_REF main
PATCHES find-msgpack.patch
)
vcpkg_check_features(
@ -31,7 +32,7 @@ vcpkg_cmake_config_fixup(CONFIG_PATH lib/share/microsoft-signalr)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/share" "${CURRENT_PACKAGES_DIR}/lib/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(COPY "${SOURCE_PATH}/third-party-notices.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_copy_pdbs()
vcpkg_copy_pdbs()

View File

@ -1,7 +1,7 @@
{
"name": "microsoft-signalr",
"version": "0.1.0-alpha4",
"port-version": 3,
"port-version": 4,
"description": "C++ Client for ASP.NET Core SignalR.",
"homepage": "https://github.com/aspnet/SignalR-Client-Cpp",
"dependencies": [

View File

@ -5138,7 +5138,7 @@
},
"microsoft-signalr": {
"baseline": "0.1.0-alpha4",
"port-version": 3
"port-version": 4
},
"mikktspace": {
"baseline": "2020-10-06",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1ea9d11c361ff46b14b9872df5b71b634ff1d709",
"version": "0.1.0-alpha4",
"port-version": 4
},
{
"git-tree": "756cbce0122778f80b0029e5efbec95f76e04457",
"version": "0.1.0-alpha4",