From c7da78ff1d7ab9b5b4c3143167376adea96aaae7 Mon Sep 17 00:00:00 2001 From: jagannatharjun Date: Thu, 16 Jul 2020 20:57:20 +0530 Subject: [PATCH] Fix invalid comparison for Boost version in CMake This reduces compile time more then half when compiled against Boost version greater than 1.60 --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a73d89e81..c00cf252d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,7 +7,7 @@ find_package(Boost ${requiredBoostVersion} REQUIRED) find_package(LibtorrentRasterbar ${requiredLibtorrentVersion} 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) endif()