cmake.patch 497 B

123456789101112131415
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 4d0904f..751e762 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -172,8 +172,8 @@ if (REFLECTCPP_MSGPACK)
  6. find_package(msgpack-c CONFIG REQUIRED)
  7. endif()
  8. else()
  9. - if (NOT TARGET msgpack)
  10. - find_package(msgpack CONFIG REQUIRED)
  11. + if (NOT TARGET msgpack-c)
  12. + find_package(msgpack-c CONFIG REQUIRED)
  13. endif()
  14. endif()
  15. target_link_libraries(reflectcpp PUBLIC msgpack-c)