build(deps): bump msgpack-c to v6.0.0 (#22522)

* Remove C++ requirement if test is disabled
* Change CMake package name of C library to msgpack-c
* Unified all C package, library, cmake, tarball name become msgpack-c.
This commit is contained in:
Christian Clason
2023-03-04 17:26:24 +01:00
committed by GitHub
parent bc26f23e5a
commit 46c4cbced5
2 changed files with 3 additions and 10 deletions

View File

@@ -10,14 +10,7 @@ else()
set(MSGPACK_VERSION_STRING)
endif()
if(MSVC)
# The import library for the msgpack DLL has a different name
list(APPEND MSGPACK_NAMES msgpackc_import)
else()
list(APPEND MSGPACK_NAMES msgpackc msgpack)
endif()
find_library(MSGPACK_LIBRARY NAMES ${MSGPACK_NAMES}
find_library(MSGPACK_LIBRARY NAMES msgpackc msgpack msgpackc_import msgpack-c
NAMES_PER_DIR)
mark_as_advanced(MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY)