mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-02 16:16:19 +08:00
Fix the msgpack dependency as well (#275)
This commit is contained in:
+5
-1
@@ -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 ()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user