From: Max Kellermann Date: Wed, 2 Oct 2024 12:09:50 +0000 (+0200) Subject: json_spirit: add missing dependency on Boost::thread X-Git-Tag: v20.0.0~602^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=80b7917cef6321b7bbc08260e336ca1d259e8ef0;p=ceph.git json_spirit: add missing dependency on Boost::thread This library is built with `BOOST_SPIRIT_THREADSAFE` and thus it requires linking with Boost::thread. This mistake usually had no effect because other build targets had this dependency already, but this is fragile and depends on the linker command parameter order. Signed-off-by: Max Kellermann --- diff --git a/src/json_spirit/CMakeLists.txt b/src/json_spirit/CMakeLists.txt index b3b5ce2e6f23..681ac909e631 100644 --- a/src/json_spirit/CMakeLists.txt +++ b/src/json_spirit/CMakeLists.txt @@ -1,4 +1,4 @@ add_library(json_spirit STATIC json_spirit_reader.cpp json_spirit_writer.cpp) -target_link_libraries(json_spirit common_utf8) +target_link_libraries(json_spirit common_utf8 Boost::thread)