diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 96ea429e5a..f0d7ccca70 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -260,6 +260,10 @@ else() target_link_libraries(common PUBLIC Boost::headers) endif() +if (TARGET Boost::context) + target_link_libraries(common PUBLIC Boost::context) +endif() + if (lz4_ADDED) target_include_directories(common PRIVATE ${lz4_SOURCE_DIR}/lib) endif()