Skip to content

Commit

Permalink
Forgot to include the checkFunction module
Browse files Browse the repository at this point in the history
  • Loading branch information
linkclau committed Aug 4, 2016
1 parent 88e1199 commit 53b439b
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
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.0)
cmake_minimum_required (VERSION 2.8.11 )
project(XMail)
# The version number.
set (XMail_VERSION_MAJOR 1)
Expand Down Expand Up @@ -48,7 +48,9 @@ ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set( SYSSRCS SysDepLinux.cpp SysDepUnix.cpp )
# Actually XMail has a bug. If SYS_HAS_SENDFILE is not defined
# SysSendFile will be defined twice
check_function_exists (sendfile SYS_HAS_SENDFILE)
include(CheckFunctionExists)
CHECK_FUNCTION_EXISTS (sendfile SYS_HAS_SENDFILE)
#check_function_exists (sendfile SYS_HAS_SENDFILE)
if (SYS_HAS_SENDFILE)
#message( "SYS_HAS_SENDFILE: ${HAS_SYSMACHINE}" )
add_definitions( -DSYS_HAS_SENDFILE )
Expand Down

0 comments on commit 53b439b

Please sign in to comment.