Additional fix for the msgpack package

This commit is contained in:
Dr. Patrick Urbanke
2024-11-23 21:01:42 +01:00
parent efb8622d16
commit b505cf1650
+5 -1
View File
@@ -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 ()