mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-29 06:03:23 +00:00
Allow large files in 32 bit builds
try to fix https://lintian.debian.org/tags/binary-file-built-without-LFS-support.html
This commit is contained in:
parent
b7fba936ef
commit
4b00d74d1a
@ -271,6 +271,14 @@ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")
|
|||||||
# Append -O2 optimization flag for Debug builds
|
# Append -O2 optimization flag for Debug builds
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O2")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O2")
|
||||||
|
|
||||||
|
# allow 'large' files in 32 bit builds
|
||||||
|
if(UNIX)
|
||||||
|
add_definitions( -D_LARGEFILE_SOURCE
|
||||||
|
-D_FILE_OFFSET_BITS=64
|
||||||
|
-D_LARGE_FILES
|
||||||
|
)
|
||||||
|
endif(UNIX)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -331,7 +339,6 @@ if(OS_IS_LINUX)
|
|||||||
endif(OS_IS_LINUX)
|
endif(OS_IS_LINUX)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Googletest - https://github.com/google/googletest
|
# Googletest - https://github.com/google/googletest
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -76,6 +76,14 @@ if(MSVC)
|
|||||||
add_compile_options(/wo4838)
|
add_compile_options(/wo4838)
|
||||||
endif(MSVC)
|
endif(MSVC)
|
||||||
|
|
||||||
|
# allow 'large' files in 32 bit builds
|
||||||
|
if(UNIX)
|
||||||
|
add_definitions( -D_LARGEFILE_SOURCE
|
||||||
|
-D_FILE_OFFSET_BITS=64
|
||||||
|
-D_LARGE_FILES
|
||||||
|
)
|
||||||
|
endif(UNIX)
|
||||||
|
|
||||||
########################################################################
|
########################################################################
|
||||||
# Dependencies setup
|
# Dependencies setup
|
||||||
########################################################################
|
########################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user