Skip to content

Commit

Permalink
Add compile def "MSGPACK_DEFAULT_API_VERSION=1"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
CanNuhlar committed Oct 20, 2022
1 parent 8d22f02 commit 684893f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/Includes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ endif()
find_package(Boost REQUIRED COMPONENTS program_options system thread random)

find_package(msgpack REQUIRED)
# https://github.com/crossbario/autobahn-cpp/issues/95
add_compile_definitions(MSGPACK_DEFAULT_API_VERSION=1)

find_package(websocketpp REQUIRED)

MESSAGE( STATUS "AUTOBAHN_BUILD_EXAMPLES: " ${AUTOBAHN_BUILD_EXAMPLES} )
Expand Down

0 comments on commit 684893f

Please sign in to comment.