Fix the msgpack dependency as well (#275)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2024-11-23 21:36:35 +01:00
committed by GitHub
parent 385241ffdf
commit 1a19c7cb73
+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 ()