From c83f87dfc4dccc5c847396fec935987b1a7315d8 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Thu, 17 May 2012 00:11:55 +0200 Subject: [PATCH] Moved the _FILE_OFFSET_BITS=64 definition before the dependency checks. Fixes compilation on Linux x86. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9721bf54ad..ce76c954db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,6 +218,7 @@ if(FASTLOG) add_definitions(-DDEBUGFAST) endif() +add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE) ######################################## # Dependency checking @@ -572,8 +573,6 @@ file(WRITE ${PROJECT_BINARY_DIR}/Source/Core/Common/Src/scmrev.h include_directories("${PROJECT_BINARY_DIR}/Source/Core/Common/Src") -add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE) - ######################################## # Optional Targets # TODO: Add DSPSpy and TestSuite.