From c6db5ea47cdbedd3a17a17984b231e11476bfa97 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Nov 2012 08:04:11 +0100 Subject: Use memcpy implementation by Daniel Vik --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a95a93..e6d683e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ 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) +add_library(fastwriter SHARED fastwriter.c sysinfo.c default.c memcpy.c) set_target_properties(fastwriter PROPERTIES VERSION ${FASTWRITER_VERSION} -- cgit v1.2.3 From 83ebc0af67cf2d4cd5a45fa253dac88f1cb3b1e4 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 27 Nov 2012 02:23:18 +0100 Subject: Seems new memcpy is only good for ipepdvcompute2, make it optional and disabled by default --- CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') 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} -- cgit v1.2.3