From d051bf0441c933e27fb0f54bc6ed999d1e8eca89 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 20 Feb 2018 06:40:14 +0800 Subject: [PATCH] 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 --- cmake/modules/BuildBoost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake index 05ce286428b6e..32f6c1d07e016 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() -- 2.39.5