From 4c05f80a2e1e560e5d64205c6ad7d63b155b1e88 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 15 Nov 2020 04:25:14 +0000 Subject: [PATCH] Fix Boost::log linking issue --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1461d54ef..72c38fa13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1062,6 +1062,7 @@ endif () # build a library of package functionality (without and optionally with OpenMP support) add_library (wsjt_cxx STATIC ${wsjt_CSRCS} ${wsjt_CXXSRCS}) +target_compile_definitions (wsjt_cxx PUBLIC BOOST_LOG_DYN_LINK) target_link_libraries (wsjt_cxx ${LIBM_LIBRARIES} Boost::log_setup ${LIBM_LIBRARIES}) # build an OpenMP variant of the Fortran library routines