diff --git a/cmake/external/boost.cmake b/cmake/external/boost.cmake index d88d693d8286d..0c1ec19a2c293 100644 --- a/cmake/external/boost.cmake +++ b/cmake/external/boost.cmake @@ -23,7 +23,10 @@ set(BOOST_PROJECT "extern_boost") # checked that the devtools package of CentOS 6 installs boost 1.41.0. # So we use 1.41.0 here. set(BOOST_VER "1.41.0") -set(BOOST_TAR "boost_1_41_0" CACHE STRING "" FORCE) +# boost_1_41_0_2021_10.tar.gz is almost the same with boost_1_41_0.tar.gz, +# except in visualc.hpp i comment a warning of "unknown compiler version", +# so if you need to change boost, you may need to block the warning similarly. +set(BOOST_TAR "boost_1_41_0_2021_10" CACHE STRING "" FORCE) set(BOOST_URL "http://paddlepaddledeps.bj.bcebos.com/${BOOST_TAR}.tar.gz" CACHE STRING "" FORCE) MESSAGE(STATUS "BOOST_VERSION: ${BOOST_VER}, BOOST_URL: ${BOOST_URL}") @@ -46,7 +49,7 @@ ExternalProject_Add( ${BOOST_PROJECT} ${EXTERNAL_PROJECT_LOG_ARGS} "${BOOST_DOWNLOAD_CMD}" - URL_MD5 f891e8c2c9424f0565f0129ad9ab4aff + URL_MD5 51be7cc203628dc0848e97eee32d79e3 PREFIX ${BOOST_PREFIX_DIR} DOWNLOAD_DIR ${BOOST_SOURCE_DIR} SOURCE_DIR ${BOOST_SOURCE_DIR}