cmake file fix

This commit is contained in:
Arvid Norberg 2014-06-23 16:19:16 +00:00
parent 9263fc87c9
commit 27b8c5f108
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,6 @@ set(sources
alert_manager alert_manager
allocator allocator
asio asio
asio_ssl
assert assert
bandwidth_limit bandwidth_limit
bandwidth_manager bandwidth_manager
@ -229,6 +228,7 @@ if (encryption)
FIND_PACKAGE(OpenSSL REQUIRED) FIND_PACKAGE(OpenSSL REQUIRED)
endif() endif()
add_definitions(-DTORRENT_USE_OPENSSL) add_definitions(-DTORRENT_USE_OPENSSL)
list(APPEND sources asio_ssl)
include_directories(${OPENSSL_INCLUDE_DIR}) include_directories(${OPENSSL_INCLUDE_DIR})
target_link_libraries(torrent-rasterbar ${OPENSSL_LIBRARIES}) target_link_libraries(torrent-rasterbar ${OPENSSL_LIBRARIES})
else() else()