Skip to content

Commit

Permalink
Link libraries for webtorrent only if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Nov 25, 2019
1 parent 56b3964 commit b06d2f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit b06d2f3

Please sign in to comment.