/alps/fastwriter

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/fastwriter

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2012-12-03 21:13:51 UTC
  • mfrom: (12.1.2 fastwriter)
  • Revision ID: csa@dside.dyndns.org-20121203211351-fayu265mie2bop91
Merge custom memcpy

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
set(DISABLE_AIO TRUE CACHE BOOL "Use kernel AIO writer")
9
9
set(DISABLE_XFS_REALTIME FALSE CACHE BOOL "Disable support of RealTime XFS partition")
10
 
 
 
10
set(USE_CUSTOM_MEMCPY FALSE CACHE BOOL "Use custom memcpy routine instead of stanadrd")
11
11
 
12
12
include(CheckIncludeFiles)
13
13
check_include_files("linux/falloc.h" HAVE_LINUX_FALLOC_H)
29
29
set(HEADERS fastwriter.h sysinfo.h default.h private.h)
30
30
set(SOURCES fastwriter.c sysinfo.c default.c)
31
31
 
 
32
if (USE_CUSTOM_MEMCPY)
 
33
    set(HEADERS ${HEADERS} memcpy.h)
 
34
    set(SOURCES ${SOURCES} memcpy.c)
 
35
endif (USE_CUSTOM_MEMCPY)
 
36
 
32
37
if (NOT DISABLE_AIO)
33
38
    check_include_files("libaio.h" HAVE_LIBAIO_H)
34
39
    if (NOT HAVE_LIBAIO_H)
48
53
    target_link_libraries(fastwriter aio)
49
54
endif (NOT DISABLE_AIO)
50
55
 
51
 
 
52
56
set(TARNAME "fastwriter")
53
57
set(PACKAGE_VERSION ${FASTWRITER_VERSION})
54
58
set(PACKAGE_NAME "${TARNAME}")