diff --git a/debian/patches/0002-oxenmq-linking-fix.patch b/debian/patches/0002-oxenmq-linking-fix.patch new file mode 100644 index 000000000..4c9234771 --- /dev/null +++ b/debian/patches/0002-oxenmq-linking-fix.patch @@ -0,0 +1,23 @@ +From: Jason Rhinelander +Date: Mon, 30 May 2022 21:56:50 -0300 +Subject: oxenmq linking fix + +--- + CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bf5e6ca..d884a1e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -200,7 +200,9 @@ if(NOT FORCE_OXENMQ_SUBMODULE) + pkg_check_modules(OXENMQ liboxenmq>=1.2.12 IMPORTED_TARGET) + endif() + if(OXENMQ_FOUND) +- add_library(oxenmq::oxenmq ALIAS PkgConfig::OXENMQ) ++ add_library(oxenmq INTERFACE) ++ target_link_libraries(oxenmq INTERFACE PkgConfig::OXENMQ) ++ add_library(oxenmq::oxenmq ALIAS oxenmq) + message(STATUS "Found system liboxenmq ${OXENMQ_VERSION}") + else() + message(STATUS "using oxenmq submodule") diff --git a/debian/patches/series b/debian/patches/series index 38a9e7a4f..8d6a4c94c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0007-Pass-debian-version-as-GIT_VERSION.patch +0002-oxenmq-linking-fix.patch