diff --git a/cmake/FindMsgpack.cmake b/cmake/FindMsgpack.cmake index 26eb19d..3578f36 100644 --- a/cmake/FindMsgpack.cmake +++ b/cmake/FindMsgpack.cmake @@ -7,7 +7,7 @@ find_package(PkgConfig) if (PKG_CONFIG_FOUND) pkg_search_module(PC_MSGPACK QUIET - msgpackc>=${Msgpack_FIND_VERSION} + msgpack-c>=${Msgpack_FIND_VERSION} msgpack>=${Msgpack_FIND_VERSION}) endif() @@ -30,7 +30,7 @@ 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) + list(APPEND MSGPACK_NAMES msgpack-c msgpackc msgpack) endif() find_library(MSGPACK_LIBRARY NAMES ${MSGPACK_NAMES}