Skip to content

Commit 684893f

Browse files
committed
Add compile def "MSGPACK_DEFAULT_API_VERSION=1"
autobahn-cpp only supports msgpack V1. Current libmsgpackc2 & libmsgpack-dev packages on Debian 10 & 11 is using V2 which makes autobahncpp incompatible with Debian 10 & 11. Until we have moved on to msgpack V2, this workaround increases the compatibility on Debian distributions.
1 parent 8d22f02 commit 684893f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/Includes/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ endif()
5757
find_package(Boost REQUIRED COMPONENTS program_options system thread random)
5858

5959
find_package(msgpack REQUIRED)
60+
# https://github.com/crossbario/autobahn-cpp/issues/95
61+
add_compile_definitions(MSGPACK_DEFAULT_API_VERSION=1)
62+
6063
find_package(websocketpp REQUIRED)
6164

6265
MESSAGE( STATUS "AUTOBAHN_BUILD_EXAMPLES: " ${AUTOBAHN_BUILD_EXAMPLES} )

0 commit comments

Comments
 (0)