w00t-labs / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
0 stars 0 forks source link

cmakelists: asio_ssl is always in sources #638

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In current trunk, in cmakelists.txt,
the asio_ssl file is always in sources list.

Original issue reported on code.google.com by fl.lllj on 22 Jun 2014 at 11:45

GoogleCodeExporter commented 9 years ago
do you have a proposed patch?

Original comment by arvid.no...@gmail.com on 22 Jun 2014 at 7:58

GoogleCodeExporter commented 9 years ago
Yeah, I'm going to make it. And also copy other things from the jam file to the 
cmakelists.

Original comment by fl.lllj on 23 Jun 2014 at 5:27

GoogleCodeExporter commented 9 years ago
great. thanks!

Original comment by arvid.no...@gmail.com on 23 Jun 2014 at 5:35

GoogleCodeExporter commented 9 years ago
Well... after looking at the cmakelists I realized that adding options like i2p 
is not necessary since there is COMPILETIME_OPTIONS_LIST.
So here is the patch only for asio_ssl:

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt  (revision 10027)
+++ CMakeLists.txt  (working copy)
@@ -7,7 +7,6 @@
    alert_manager
    allocator
    asio
-   asio_ssl
    assert
    bandwidth_limit
    bandwidth_manager
@@ -229,6 +228,7 @@
        FIND_PACKAGE(OpenSSL REQUIRED)
    endif()
    add_definitions(-DTORRENT_USE_OPENSSL)
+   list(APPEND sources asio_ssl)
    include_directories(${OPENSSL_INCLUDE_DIR})
    target_link_libraries(torrent-rasterbar ${OPENSSL_LIBRARIES})
 else() 

Original comment by fl.lllj on 23 Jun 2014 at 1:16

GoogleCodeExporter commented 9 years ago
thanks! fixed.

Original comment by arvid.no...@gmail.com on 23 Jun 2014 at 4:19