[ripple/rippled] Support for boost 1.68 (#2652)

seelabs commented on this pull request.

> set(_boost_COMPILER «-vc141;-vc140»)
— elseif (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 19)
— set(_boost_COMPILER «-vc140»)
— elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18)
— set(_boost_COMPILER «-vc120»)
— elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 17)
— set(_boost_COMPILER «-vc110»)
— elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16)
— set(_boost_COMPILER «-vc100»)
— elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 15)
— set(_boost_COMPILER «-vc90»)
— elseif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14)
— set(_boost_COMPILER «-vc80»)
+ elseif(MSVC_TOOLSET_VERSION GREATER_EQUAL 80)
+ set(_boost_COMPILER «-vc${MSVC_TOOLSET_VERSION}»)

This file is a modified version from https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake Every time a new boost comes out we’ll have to re-apply the changes (or possibly require a new version of cmake). As long as that’s true, I’d like to keep the modifications to the minimum needed to let this work (@mellery451 had to make some changes to let it work on windows for cmake versions < 3.12).

Добавить комментарий