mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-11-26 12:56:18 +08:00
+2
-2
@@ -332,9 +332,9 @@ if (REFLECTCPP_MSGPACK OR REFLECTCPP_CHECK_HEADERS)
|
||||
src/reflectcpp_msgpack.cpp
|
||||
)
|
||||
if (NOT TARGET msgpack-c)
|
||||
find_package(msgpack-c CONFIG REQUIRED NAMES msgpack msgpack-c)
|
||||
find_package(msgpack-c CONFIG REQUIRED NAMES msgpack msgpack-c msgpackc)
|
||||
endif()
|
||||
target_link_libraries(reflectcpp PUBLIC msgpack-c)
|
||||
target_link_libraries(reflectcpp PUBLIC $<IF:$<TARGET_EXISTS:msgpack-c>,msgpack-c,$<IF:$<TARGET_EXISTS:msgpackc>,msgpackc,msgpack-c>>)
|
||||
endif ()
|
||||
|
||||
if (REFLECTCPP_PARQUET OR REFLECTCPP_CHECK_HEADERS)
|
||||
|
||||
Reference in New Issue
Block a user