Define preprocess macros to enable extensions and support for large files

This commit is contained in:
Frank Denis 2016-01-23 16:17:07 +01:00
parent be2cc10844
commit 2ca0bea22f

View file

@ -20,6 +20,9 @@ endif(NOT CMAKE_BUILD_TYPE)
include(CPack)
include(CheckLibraryExists)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_ALL_SOURCE -D_GNU_SOURCE")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64")
find_library(LIB_SODIUM NAMES sodium REQUIRED)
add_executable(minisign