]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: disable DOWNLOAD_NO_PROGRESS if cmake ver is lower than 3.1 20492/head
authorKefu Chai <kchai@redhat.com>
Mon, 19 Feb 2018 22:40:14 +0000 (06:40 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Feb 2018 22:40:15 +0000 (06:40 +0800)
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 <kchai@redhat.com>
cmake/modules/BuildBoost.cmake

index 05ce286428b6ec4e13855ba74fc06bbe1bb0620c..32f6c1d07e016e756e0400431ac06897b89a8cf0 100644 (file)
@@ -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()