update CMakeLists.txt and fix typo in Changelog
This commit is contained in:
parent
6590f5f053
commit
1b6d64107d
|
@ -203,7 +203,9 @@ else (shared)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Boost
|
# Boost
|
||||||
|
if(NOT DEFINED Boost_INCLUDE_DIR OR NOT DEFINED Boost_LIBRARIES)
|
||||||
FIND_PACKAGE( Boost COMPONENTS system thread date_time chrono)
|
FIND_PACKAGE( Boost COMPONENTS system thread date_time chrono)
|
||||||
|
endif()
|
||||||
include_directories(${Boost_INCLUDE_DIR})
|
include_directories(${Boost_INCLUDE_DIR})
|
||||||
target_link_libraries(torrent-rasterbar ${Boost_LIBRARIES})
|
target_link_libraries(torrent-rasterbar ${Boost_LIBRARIES})
|
||||||
|
|
||||||
|
@ -222,7 +224,9 @@ if (WIN32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (encryption)
|
if (encryption)
|
||||||
|
if(NOT DEFINED OPENSSL_INCLUDE_DIR OR NOT DEFINED OPENSSL_LIBRARIES)
|
||||||
FIND_PACKAGE(OpenSSL REQUIRED)
|
FIND_PACKAGE(OpenSSL REQUIRED)
|
||||||
|
endif()
|
||||||
add_definitions(-DTORRENT_USE_OPENSSL)
|
add_definitions(-DTORRENT_USE_OPENSSL)
|
||||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||||
target_link_libraries(torrent-rasterbar ${OPENSSL_LIBRARIES})
|
target_link_libraries(torrent-rasterbar ${OPENSSL_LIBRARIES})
|
||||||
|
@ -275,6 +279,8 @@ if (MSVC)
|
||||||
|
|
||||||
#$(SolutionDir)<toolset>msvc,<variant>release:<linkflags>/OPT:ICF=5
|
#$(SolutionDir)<toolset>msvc,<variant>release:<linkflags>/OPT:ICF=5
|
||||||
#$(SolutionDir)<toolset>msvc,<variant>release:<linkflags>/OPT:REF
|
#$(SolutionDir)<toolset>msvc,<variant>release:<linkflags>/OPT:REF
|
||||||
|
else()
|
||||||
|
add_definitions(-Wno-c++11-extensions)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_definitions(-D_FILE_OFFSET_BITS=64)
|
add_definitions(-D_FILE_OFFSET_BITS=64)
|
||||||
|
@ -321,7 +327,7 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libtorrent-rasterbar.pc DESTINATION ${
|
||||||
|
|
||||||
# === build examples ===
|
# === build examples ===
|
||||||
if(build_examples)
|
if(build_examples)
|
||||||
FILE(GLOB examples RELATIVE "${CMAKE_SOURCE_DIR}" "examples/*.cpp")
|
FILE(GLOB examples RELATIVE "${PROJECT_SOURCE_DIR}" "examples/*.cpp")
|
||||||
foreach(s ${examples})
|
foreach(s ${examples})
|
||||||
get_filename_component (sn ${s} NAME_WE)
|
get_filename_component (sn ${s} NAME_WE)
|
||||||
add_executable(${sn} ${s})
|
add_executable(${sn} ${s})
|
||||||
|
@ -333,7 +339,7 @@ endif()
|
||||||
|
|
||||||
# === build tests ===
|
# === build tests ===
|
||||||
if(build_tests)
|
if(build_tests)
|
||||||
FILE(GLOB tests RELATIVE "${CMAKE_SOURCE_DIR}" "tests/*.cpp")
|
FILE(GLOB tests RELATIVE "${PROJECT_SOURCE_DIR}" "tests/*.cpp")
|
||||||
add_library(test_common STATIC test/main.cpp test/setup_transfer.cpp)
|
add_library(test_common STATIC test/main.cpp test/setup_transfer.cpp)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
1.0 release
|
1.0 release
|
||||||
|
|
||||||
* if issue with large UDP packets on windows
|
* fix issue with large UDP packets on windows
|
||||||
* remove set_ratio() feature
|
* remove set_ratio() feature
|
||||||
* improve piece_deadline/streaming
|
* improve piece_deadline/streaming
|
||||||
* honor pieces with priority 7 in sequential download mode
|
* honor pieces with priority 7 in sequential download mode
|
||||||
|
|
Loading…
Reference in New Issue