Merge pull request #38256 from badone/wip-dont-build-io_uring.c-every-time

cmake: Stop 'configure' running every time

Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2020-11-24 16:04:51 +08:00 committed by GitHub
commit 2e690bba7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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)