From: Brad Hubbard Date: Tue, 24 Nov 2020 03:24:35 +0000 (+1000) Subject: cmake: Stop 'configure' running every time X-Git-Tag: v16.1.0~498^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38256%2Fhead;p=ceph.git cmake: Stop 'configure' running every time Currently the configure script is run on 'liburing_ext' not only for the initial build but for subsequent incremental builds. Signed-off-by: Brad Hubbard --- diff --git a/cmake/modules/Builduring.cmake b/cmake/modules/Builduring.cmake index 3cd64d7cbf70..a30f164fcfce 100644 --- a/cmake/modules/Builduring.cmake +++ b/cmake/modules/Builduring.cmake @@ -11,8 +11,7 @@ function(build_uring) GIT_REPOSITORY https://git.kernel.dk/liburing GIT_TAG "liburing-0.7" GIT_SHALLOW TRUE - GIT_CONFIG advice.detachedHead=false - UPDATE_DISCONNECTED TRUE) + GIT_CONFIG advice.detachedHead=false) endif() include(ExternalProject) @@ -22,7 +21,8 @@ function(build_uring) BUILD_COMMAND env CC=${CMAKE_C_COMPILER} "CFLAGS=${CMAKE_C_FLAGS} -fPIC" ${make_cmd} -C src -s BUILD_IN_SOURCE 1 BUILD_BYPRODUCTS "/src/liburing.a" - INSTALL_COMMAND "") + INSTALL_COMMAND "" + UPDATE_COMMAND "") unset(make_cmd) ExternalProject_Get_Property(liburing_ext source_dir)