/alps/fastwriter

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/fastwriter

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2012-11-27 01:23:18 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: csa@dside.dyndns.org-20121127012318-lbfqejwt1anxvp3l
Seems new memcpy is only good for ipepdvcompute2, make it optional and disabled by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
cmake_minimum_required(VERSION 2.8)
7
7
 
8
8
set(DISABLE_XFS_REALTIME FALSE CACHE BOOL "Disable support of RealTime XFS partition")
9
 
 
 
9
set(USE_CUSTOM_MEMCPY FALSE CACHE BOOL "Use custom memcpy routine instead of stanadrd")
10
10
 
11
11
include(CheckIncludeFiles)
12
12
check_include_files("linux/falloc.h" HAVE_LINUX_FALLOC_H)
25
25
 
26
26
add_definitions("-fPIC --std=c99 -Wall -O2 -pthread")
27
27
 
28
 
set(HEADERS fastwriter.h sysinfo.h default.h private.h)
29
 
add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c memcpy.c) 
 
28
if (USE_CUSTOM_MEMCPY)
 
29
    set(HEADERS fastwriter.h sysinfo.h default.h private.h memcpy.h)
 
30
    add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c memcpy.c) 
 
31
else (USE_CUSTOM_MEMCPY)
 
32
    set(HEADERS fastwriter.h sysinfo.h default.h private.h)
 
33
    add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c) 
 
34
endif (USE_CUSTOM_MEMCPY)
 
35
 
30
36
 
31
37
set_target_properties(fastwriter PROPERTIES
32
38
    VERSION ${FASTWRITER_VERSION}