]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
json_spirit: add missing dependency on Boost::thread 60099/head
authorMax Kellermann <max.kellermann@ionos.com>
Wed, 2 Oct 2024 12:09:50 +0000 (14:09 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Thu, 3 Oct 2024 10:39:20 +0000 (12:39 +0200)
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 <max.kellermann@ionos.com>
src/json_spirit/CMakeLists.txt

index b3b5ce2e6f23e0578df34693606b93c490659504..681ac909e631041716d0f264e871f4b0a90234c0 100644 (file)
@@ -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)