Skip to content

Commit

Permalink
cmake: Stop 'configure' running every time
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
badone committed Nov 24, 2020
1 parent c569a30 commit e0240b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/modules/Builduring.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit e0240b9

Please sign in to comment.