Skip to content

Commit

Permalink
Fix compile errors on 64 bit Linux after semi-recent stdio changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kavika13 committed May 24, 2024
1 parent 72d529c commit 15c319a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Projects/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ if(LINUX)
SET(ARCH_OUT "amd64")
SET(TOOL_BIN_NAME "bin64")
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS ON)

### Ensure LargeFileSupport on 64bit linux
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE64_SOURCE=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LARGEFILE64_SOURCE=1")
ELSE()
SET(LIB_SUFFIX "lib")
SET(BIN_SUFFIX ".bin.x86")
Expand Down

0 comments on commit 15c319a

Please sign in to comment.