From 80b7917cef6321b7bbc08260e336ca1d259e8ef0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Oct 2024 14:09:50 +0200 Subject: [PATCH] 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 --- src/json_spirit/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3