mirror of
https://github.com/ceph/ceph
synced 2024-12-27 05:53:20 +00:00
939805165e
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
16 lines
643 B
CMake
16 lines
643 B
CMake
function(build_fio)
|
|
# we use an external project and copy the sources to bin directory to ensure
|
|
# that object files are built outside of the source tree.
|
|
include(ExternalProject)
|
|
ExternalProject_Add(fio_ext
|
|
DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/src/
|
|
UPDATE_COMMAND "" # this disables rebuild on each run
|
|
GIT_REPOSITORY "https://github.com/axboe/fio.git"
|
|
GIT_TAG "fio-3.5"
|
|
SOURCE_DIR ${CMAKE_BINARY_DIR}/src/fio
|
|
BUILD_IN_SOURCE 1
|
|
CONFIGURE_COMMAND <SOURCE_DIR>/configure
|
|
BUILD_COMMAND $(MAKE) fio EXTFLAGS=-Wno-format-truncation
|
|
INSTALL_COMMAND cp <BINARY_DIR>/fio ${CMAKE_BINARY_DIR}/bin)
|
|
endfunction()
|