mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-03 02:14:16 +00:00
Fix invalid comparison for Boost version in CMake
This reduces compile time more then half when compiled against Boost version greater than 1.60
This commit is contained in:
parent
3cf8626317
commit
c7da78ff1d
@ -7,7 +7,7 @@ find_package(Boost ${requiredBoostVersion} REQUIRED)
|
|||||||
find_package(LibtorrentRasterbar ${requiredLibtorrentVersion} REQUIRED)
|
find_package(LibtorrentRasterbar ${requiredLibtorrentVersion} REQUIRED)
|
||||||
find_package(OpenSSL ${requiredOpensslVersion} REQUIRED)
|
find_package(OpenSSL ${requiredOpensslVersion} REQUIRED)
|
||||||
|
|
||||||
if (Boost_VERSION VERSION_LESS 106000)
|
if (Boost_VERSION_STRING VERSION_LESS 1.60.0)
|
||||||
add_definitions(-DBOOST_NO_CXX11_RVALUE_REFERENCES)
|
add_definitions(-DBOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user