2018-02-21 12:03:23 +00:00
|
|
|
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"
|
2018-05-16 09:51:42 +00:00
|
|
|
GIT_TAG "540e235dcd276e63c57ca4bd35f70a0651e2d00e"
|
2018-02-21 12:03:23 +00:00
|
|
|
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()
|