build: prepare for boost 1.68
Beast seems to have picked up a dependency on libatomic somewhere
between 1.66 and 1.68:
: in function `boost::beast::websocket::detail::stream_prng::create_mask() [clone .isra.3482] [clone .lto_priv.2208]':
<artificial>:(.text+0x50c): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
Change-Id: I1b02ea6c3f0babb4e4cba297f0f8d8e8a2efe3ad
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b17628b..c6d20c6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -236,6 +236,7 @@
target_link_libraries (bmcweb ${OPENSSL_LIBRARIES})
target_link_libraries (bmcweb ${ZLIB_LIBRARIES})
target_link_libraries (bmcweb pam)
+target_link_libraries (bmcweb -latomic)
target_link_libraries (bmcweb -lsystemd)
target_link_libraries (bmcweb -lstdc++fs)
target_link_libraries (bmcweb sdbusplus)