diff --git a/examples/cmake/FindLibtorrentRasterbar.cmake b/examples/cmake/FindLibtorrentRasterbar.cmake index 28f5b0a91..1edeab971 100644 --- a/examples/cmake/FindLibtorrentRasterbar.cmake +++ b/examples/cmake/FindLibtorrentRasterbar.cmake @@ -39,11 +39,9 @@ else() -DUNICODE -D_UNICODE -D_FILE_OFFSET_BITS=64) endif() - if(LibtorrentRasterbar_USE_STATIC_LIBS) - list(APPEND LibtorrentRasterbar_DEFINITIONS -DBOOST_ASIO_SEPARATE_COMPILATION) - else() + if(NOT LibtorrentRasterbar_USE_STATIC_LIBS) list(APPEND LibtorrentRasterbar_DEFINITIONS - -DTORRENT_LINKING_SHARED -DBOOST_ASIO_DYN_LINK + -DTORRENT_LINKING_SHARED -DBOOST_SYSTEM_DYN_LINK -DBOOST_CHRONO_DYN_LINK) endif() endif()