From 67afc23069cc42370c0bcbd98ea4ac37b0d39410 Mon Sep 17 00:00:00 2001 From: Ryan Ofsky Date: Thu, 23 Jan 2025 16:21:55 -0500 Subject: [PATCH] Fix debian "libatomic not found" error in downstream builds This is an extension of the workaround implemented previously in #119. That workaround let the libmultiprocess cmake build work with the debian capnproto package. This change extends the workaround to apply to downstream cmake builds that call find_package(Libmultiprocess), like Bitcoin Core. Fixes #132 --- cmake/Config.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/Config.cmake.in b/cmake/Config.cmake.in index 2310acf0..edff7d14 100644 --- a/cmake/Config.cmake.in +++ b/cmake/Config.cmake.in @@ -17,6 +17,9 @@ if ("Bin" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS) endif() if ("Lib" IN_LIST ${CMAKE_FIND_PACKAGE_NAME}_FIND_COMPONENTS) + # Setting FOUND_LIBATOMIC is needed on debian & ubuntu systems to work around bug in + # their capnproto packages. See compat_find.cmake for a more complete explanation. + set(FOUND_LIBATOMIC TRUE) include(CMakeFindDependencyMacro) find_dependency(CapnProto) endif()