ports/databases/foundationdb73-server/files/patch-cmake_GetMsgpack.cmake
Dmitry Wagin 3dc4928b6c databases/foundationdb*: split, update to 7.1.59 & 7.3.41
Update FoundationDB to both main supported versions, and also split
between server and client builds for convenience.

PR:		277262
Reviewed by:	dch
Sponsored by:	SkunkWerks, GmbH
2024-05-23 22:14:48 +00:00

17 lines
552 B
CMake

--- cmake/GetMsgpack.cmake.orig 2023-09-26 04:25:05 UTC
+++ cmake/GetMsgpack.cmake
@@ -1,9 +1,13 @@
find_package(msgpack 3.3.0 EXACT QUIET CONFIG)
+find_package(msgpackc-cxx 4.0.0...<6 QUIET CONFIG)
+find_package(msgpack-cxx 6 QUIET CONFIG)
add_library(msgpack INTERFACE)
-if(msgpack_FOUND)
+if(msgpack_FOUND OR msgpackc-cxx_FOUND)
target_link_libraries(msgpack INTERFACE msgpackc-cxx)
+elseif(msgpack-cxx_FOUND)
+ target_link_libraries(msgpack INTERFACE msgpack-cxx)
else()
include(ExternalProject)
ExternalProject_add(msgpackProject