Skip to content

Commit b505cf1

Browse files
Additional fix for the msgpack package
1 parent efb8622 commit b505cf1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ if (REFLECTCPP_MSGPACK)
135135
list(APPEND REFLECT_CPP_SOURCES
136136
src/reflectcpp_msgpack.cpp
137137
)
138-
find_package(msgpack-c CONFIG REQUIRED)
138+
if(REFLECTCPP_USE_VCPKG)
139+
find_package(msgpack-c CONFIG REQUIRED)
140+
else()
141+
find_package(msgpack CONFIG REQUIRED)
142+
endif()
139143
target_link_libraries(reflectcpp PUBLIC msgpack-c)
140144
endif ()
141145

0 commit comments

Comments
 (0)