From 394982da4efd5da938daf7ed6769ce2c7f8623f9 Mon Sep 17 00:00:00 2001 From: Nestal Wan Date: Mon, 16 Jul 2012 22:30:30 +0800 Subject: [PATCH] added _FILE_OFFSET_BITS=64 (#88) --- CMakeLists.txt | 5 +++++ grive/CMakeLists.txt | 2 -- libgrive/CMakeLists.txt | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92c50b4..ca39cb1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,11 @@ cmake_minimum_required(VERSION 2.8) +# Grive version. remember to update it for every new release! set( GRIVE_VERSION "0.2.0" ) +# common compile options +add_definitions( -DVERSION="${GRIVE_VERSION}" ) +add_definitions( -D_FILE_OFFSET_BITS=64 ) + add_subdirectory( libgrive ) add_subdirectory( grive ) diff --git a/grive/CMakeLists.txt b/grive/CMakeLists.txt index cde3578..d5f8ebe 100644 --- a/grive/CMakeLists.txt +++ b/grive/CMakeLists.txt @@ -7,8 +7,6 @@ include_directories( ${OPT_INCS} ) -add_definitions( -DVERSION="${GRIVE_VERSION}" ) - file (GLOB GRIVE_EXE_SRC ${grive_SOURCE_DIR}/src/*.cc ) diff --git a/libgrive/CMakeLists.txt b/libgrive/CMakeLists.txt index 000d898..a19fc99 100644 --- a/libgrive/CMakeLists.txt +++ b/libgrive/CMakeLists.txt @@ -68,7 +68,6 @@ file (GLOB LIBGRIVE_SRC ) add_definitions( - -DVERSION="${GRIVE_VERSION}" -DTEST_DATA="${libgrive_SOURCE_DIR}/test/data/" -DSRC_DIR="${libgrive_SOURCE_DIR}/src" )