diff --git a/CMakeLists.txt b/CMakeLists.txt index 3293130..475fc53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,6 +109,9 @@ include_directories( set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_HEADER_ONLY OFF) find_package(Boost REQUIRED COMPONENTS system log) +# Define BOOST_ALL_DYN_LINK project-wide to ensure all Boost libraries use dynamic linking +add_compile_definitions(BOOST_ALL_DYN_LINK) + find_package(PkgConfig REQUIRED) find_package(FLEX REQUIRED) find_package(BISON REQUIRED)