]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: disable DOWNLOAD_NO_PROGRESS if cmake ver is lower than 3.1
authorKefu Chai <kchai@redhat.com>
Mon, 19 Feb 2018 22:40:14 +0000 (06:40 +0800)
committerAlfredo Deza <adeza@redhat.com>
Mon, 19 Feb 2018 23:10:24 +0000 (18:10 -0500)
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>
(cherry picked from commit d051bf0441c933e27fb0f54bc6ed999d1e8eca89)

cmake/modules/BuildBoost.cmake

index cd6535886f80c5417ed4f042262eba4e75d52e4b..b1ae470ad20dede9626c47fa46801517c127882d 100644 (file)
@@ -99,7 +99,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()