summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-27 02:23:18 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-27 02:23:18 +0100
commit83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4 (patch)
tree421e22d765b97b6d4e213578ca59cf4035940123 /CMakeLists.txt
parentc6db5ea47cdbedd3a17a17984b231e11476bfa97 (diff)
downloadfastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.tar.gz
fastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.tar.bz2
fastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.tar.xz
fastwriter-83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4.zip
Seems new memcpy is only good for ipepdvcompute2, make it optional and disabled by default
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e6d683e..66d5cbc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ set(FASTWRITER_ABI_VERSION "0")
cmake_minimum_required(VERSION 2.8)
set(DISABLE_XFS_REALTIME FALSE CACHE BOOL "Disable support of RealTime XFS partition")
-
+set(USE_CUSTOM_MEMCPY FALSE CACHE BOOL "Use custom memcpy routine instead of stanadrd")
include(CheckIncludeFiles)
check_include_files("linux/falloc.h" HAVE_LINUX_FALLOC_H)
@@ -25,8 +25,14 @@ include_directories(
add_definitions("-fPIC --std=c99 -Wall -O2 -pthread")
-set(HEADERS fastwriter.h sysinfo.h default.h private.h)
-add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c memcpy.c)
+if (USE_CUSTOM_MEMCPY)
+ set(HEADERS fastwriter.h sysinfo.h default.h private.h memcpy.h)
+ add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c memcpy.c)
+else (USE_CUSTOM_MEMCPY)
+ set(HEADERS fastwriter.h sysinfo.h default.h private.h)
+ add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c)
+endif (USE_CUSTOM_MEMCPY)
+
set_target_properties(fastwriter PROPERTIES
VERSION ${FASTWRITER_VERSION}