Skip to content

Commit b06d2f3

Browse files
Link libraries for webtorrent only if necessary
1 parent 56b3964 commit b06d2f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,9 @@ include(CheckCXXCompilerFlag)
779779

780780
add_subdirectory(bindings)
781781

782-
# TODO: Option
782+
if(webtorrent)
783783
target_link_libraries(torrent-rasterbar PRIVATE LibDataChannel::LibDataChannelStatic nlohmann_json::nlohmann_json)
784+
endif()
784785

785786
install(TARGETS torrent-rasterbar EXPORT LibtorrentRasterbarTargets
786787
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}

0 commit comments

Comments
 (0)