From 80e2e9d05ddd3426a6a4025ecc7212c5e1930431 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 31 May 2021 21:13:34 +0200 Subject: [PATCH] Re-add -DBOOST_LOG_DYN_LINK It seems we still need it. The combination of Boost 1.65.1 and CMake 3.12 does not work otherwise. Not sure whose fault it is. --- src/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 717340e..713f712 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,6 +15,10 @@ target_sources(${PROJECT_NAME}_lib unset(sources_src) unset(headers_src) +# Older CMake versions apparently need this, but I don't know in which version +# it changed. Theoretically Boost::dynamic_linking should take care of it. +add_compile_definitions("BOOST_LOG_DYN_LINK") + target_link_libraries(${PROJECT_NAME}_lib PUBLIC Boost::dynamic_linking