Skip to content

Commit

Permalink
Additional fix for the msgpack package
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzicheng1987 committed Nov 23, 2024
1 parent efb8622 commit b505cf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ if (REFLECTCPP_MSGPACK)
list(APPEND REFLECT_CPP_SOURCES
src/reflectcpp_msgpack.cpp
)
find_package(msgpack-c CONFIG REQUIRED)
if(REFLECTCPP_USE_VCPKG)
find_package(msgpack-c CONFIG REQUIRED)
else()
find_package(msgpack CONFIG REQUIRED)
endif()
target_link_libraries(reflectcpp PUBLIC msgpack-c)
endif ()

Expand Down

0 comments on commit b505cf1

Please sign in to comment.