From: Kefu Chai Date: Mon, 19 Feb 2018 22:40:14 +0000 (+0800) Subject: cmake: disable DOWNLOAD_NO_PROGRESS if cmake ver is lower than 3.1 X-Git-Tag: v13.0.2~233^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d051bf0441c933e27fb0f54bc6ed999d1e8eca89;p=ceph.git cmake: disable DOWNLOAD_NO_PROGRESS if cmake ver is lower than 3.1 see https://cmake.org/cmake/help/v3.1/module/ExternalProject.html and https://cmake.org/cmake/help/v3.0/module/ExternalProject.html. the former has DOWNLOAD_NO_PROGRESS, while the latter does not. Signed-off-by: Kefu Chai --- diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index 05ce286428b6..32f6c1d07e01 100644 --- a/cmake/modules/BuildBoost.cmake +++ b/cmake/modules/BuildBoost.cmake @@ -143,7 +143,7 @@ function(do_build_boost version) set(source_dir URL ${boost_url} URL_MD5 ${boost_md5}) - if(CMAKE_VERSION VERSION_GREATER 3.0) + if(CMAKE_VERSION VERSION_GREATER 3.1) list(APPEND source_dir DOWNLOAD_NO_PROGRESS 1) endif() endif()