cmake: download and build boost 1.73 if it is not installed

Fixes: https://tracker.ceph.com/issues/46208
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-06-26 15:48:11 +08:00
parent 40f08b3b0e
commit 7fe16eb0e6

View File

@ -145,14 +145,14 @@ function(do_build_boost version)
check_boost_version("${PROJECT_SOURCE_DIR}/src/boost" ${version}) check_boost_version("${PROJECT_SOURCE_DIR}/src/boost" ${version})
set(source_dir set(source_dir
SOURCE_DIR "${PROJECT_SOURCE_DIR}/src/boost") SOURCE_DIR "${PROJECT_SOURCE_DIR}/src/boost")
elseif(version VERSION_GREATER 1.72) elseif(version VERSION_GREATER 1.73)
message(FATAL_ERROR "Unknown BOOST_REQUESTED_VERSION: ${version}") message(FATAL_ERROR "Unknown BOOST_REQUESTED_VERSION: ${version}")
else() else()
message(STATUS "boost will be downloaded...") message(STATUS "boost will be downloaded...")
# NOTE: If you change this version number make sure the package is available # NOTE: If you change this version number make sure the package is available
# at the three URLs below (may involve uploading to download.ceph.com) # at the three URLs below (may involve uploading to download.ceph.com)
set(boost_version 1.72.0) set(boost_version 1.73.0)
set(boost_sha256 59c9b274bc451cf91a9ba1dd2c7fdcaf5d60b1b3aa83f2c9fa143417cc660722) set(boost_sha256 4eb3b8d442b426dc35346235c8733b5ae35ba431690e38c6a8263dce9fcbb402)
string(REPLACE "." "_" boost_version_underscore ${boost_version} ) string(REPLACE "." "_" boost_version_underscore ${boost_version} )
set(boost_url set(boost_url
https://dl.bintray.com/boostorg/release/${boost_version}/source/boost_${boost_version_underscore}.tar.bz2) https://dl.bintray.com/boostorg/release/${boost_version}/source/boost_${boost_version_underscore}.tar.bz2)