]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: Stop 'configure' running every time
authorBrad Hubbard <bhubbard@redhat.com>
Tue, 24 Nov 2020 03:24:35 +0000 (13:24 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Tue, 24 Nov 2020 03:38:37 +0000 (13:38 +1000)
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 <bhubbard@redhat.com>
cmake/modules/Builduring.cmake

index 3cd64d7cbf7006b251a6f8c2f1d7bf1f954e38ef..a30f164fcfce77c2eb499764844172c0a09295f2 100644 (file)
@@ -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 "<SOURCE_DIR>/src/liburing.a"
-    INSTALL_COMMAND "")
+    INSTALL_COMMAND ""
+    UPDATE_COMMAND "")
   unset(make_cmd)
 
   ExternalProject_Get_Property(liburing_ext source_dir)