Added 64bit file support flag for linux.
This commit is contained in:
parent
4ba7670e43
commit
620b1ea603
@ -184,6 +184,11 @@ if(MSVC)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Enable 64bit file support on linux.
|
||||||
|
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
|
||||||
|
add_definitions("-D_FILE_OFFSET_BITS=64")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Compiler-specific flags
|
# Compiler-specific flags
|
||||||
if(CMAKE_COMPILER_IS_GNUCC)
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "i686")
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "i686")
|
||||||
|
@ -161,6 +161,11 @@ endif()
|
|||||||
|
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWINPR_EXPORTS")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWINPR_EXPORTS")
|
||||||
|
|
||||||
|
# Enable 64bit file support on linux.
|
||||||
|
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
|
||||||
|
add_definitions("-D_FILE_OFFSET_BITS=64")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user