Skip to content

Commit

Permalink
Only enable LFS support for non-Windows
Browse files Browse the repository at this point in the history
* Causes zlib.h to go haywire otherwise
  • Loading branch information
SoapZA committed Oct 31, 2017
1 parent 1289ff6 commit d095a5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ ensure_out_of_source_build( "
(or the Windows equivalent)\n" )

# define compiler flags for all code, copied from Autoconf's AC_SYS_LARGEFILE
add_definitions( -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE )
add_compile_options( -Wall )
if( NOT WIN32 )
add_definitions( -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE )
add_compile_options( -Wall )
endif()

# -----------------------------------------------
# handle platform-/environment-specific defines
Expand Down

0 comments on commit d095a5f

Please sign in to comment.