From b06d2f327d0ed2d7ac471288fb02328d758b9992 Mon Sep 17 00:00:00 2001 From: Paul-Louis Ageneau Date: Mon, 25 Nov 2019 21:19:23 +0100 Subject: [PATCH] Link libraries for webtorrent only if necessary --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4623010878..5c37caa278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -779,8 +779,9 @@ include(CheckCXXCompilerFlag) add_subdirectory(bindings) -# TODO: Option +if(webtorrent) target_link_libraries(torrent-rasterbar PRIVATE LibDataChannel::LibDataChannelStatic nlohmann_json::nlohmann_json) +endif() install(TARGETS torrent-rasterbar EXPORT LibtorrentRasterbarTargets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}