diff --git a/Universal/CMakeLists.txt b/Universal/CMakeLists.txt index bccde74..54034f1 100644 --- a/Universal/CMakeLists.txt +++ b/Universal/CMakeLists.txt @@ -16,6 +16,11 @@ add_library(Universal if(CMAKE_VERSION VERSION_LESS 3.20) get_filename_component(KYLIN_CORE_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY) + if(NOT Boost_USE_STATIC_LIBS) + target_compile_definitions(Universal + PUBLIC BOOST_LOG_DYN_LINK + ) + endif() else() cmake_path(GET CMAKE_CURRENT_SOURCE_DIR PARENT_PATH KYLIN_CORE_INCLUDE_PATH) endif()