diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 94d1ad8..7cc39b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,14 +1,23 @@ project(fastwriter) -set(FASTWRITER_VERSION "0.0.1") +set(FASTWRITER_VERSION "0.0.2") set(FASTWRITER_ABI_VERSION "0") cmake_minimum_required(VERSION 2.8) +set(DISABLE_XFS_REALTIME FALSE CACHE BOOL "Disable support of RealTime XFS partition") + include(CheckIncludeFiles) check_include_files("linux/falloc.h" HAVE_LINUX_FALLOC_H) +if (NOT DISABLE_XFS_REALTIME) + check_include_files("xfs/xfs.h" HAVE_XFS_H) + if (NOT HAVE_XFS_H) + message(FATAL_ERROR "error: xfs/xfs.h is not found...") + endif (NOT HAVE_XFS_H) +endif (NOT DISABLE_XFS_REALTIME) + include_directories( ${CMAKE_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR} |