From 9ed5ee4469d8404e52e001e6f0390d3436d16618 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Mon, 22 Jun 2015 21:59:12 +0200 Subject: [PATCH] Always build libtorrent as a static library --- apps/Launcher/ext/libtorrent/CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/Launcher/ext/libtorrent/CMakeLists.txt b/apps/Launcher/ext/libtorrent/CMakeLists.txt index d9050522fc..b320846e13 100644 --- a/apps/Launcher/ext/libtorrent/CMakeLists.txt +++ b/apps/Launcher/ext/libtorrent/CMakeLists.txt @@ -120,7 +120,6 @@ set(ed25519_sources set(includes include ed25519/src) -option(LIBTORRENT_shared "build libtorrent as a shared library" ON) option(LIBTORRENT_pool-allocators "Uses a pool allocator for disk and piece buffers" ON) option(LIBTORRENT_dht "enable support for Mainline DHT" OFF) option(LIBTORRENT_unicode "enable unicode support" ON) @@ -153,12 +152,7 @@ if (LIBTORRENT_dht) endforeach(s) endif () -if (LIBTORRENT_shared) - add_definitions(-DTORRENT_BUILDING_SHARED) - add_library(libtorrent SHARED ${sources2}) -else () - add_library(libtorrent STATIC ${sources2}) -endif () +add_library(libtorrent STATIC ${sources2}) target_include_directories(libtorrent PUBLIC ${includes}) target_compile_definitions(libtorrent PUBLIC