diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d0904f..751e762 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,8 +172,8 @@ if (REFLECTCPP_MSGPACK) find_package(msgpack-c CONFIG REQUIRED) endif() else() - if (NOT TARGET msgpack) - find_package(msgpack CONFIG REQUIRED) + if (NOT TARGET msgpack-c) + find_package(msgpack-c CONFIG REQUIRED) endif() endif() target_link_libraries(reflectcpp PUBLIC msgpack-c)