Remove tiny-nghttpd from cmake build system
This commit is contained in:
parent
30a44b26d3
commit
d2f456e5b1
|
@ -313,7 +313,6 @@ include(CheckFunctionExists)
|
||||||
check_function_exists(_Exit HAVE__EXIT)
|
check_function_exists(_Exit HAVE__EXIT)
|
||||||
check_function_exists(accept4 HAVE_ACCEPT4)
|
check_function_exists(accept4 HAVE_ACCEPT4)
|
||||||
|
|
||||||
# timerfd_create was added in linux kernel 2.6.25
|
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
# XXX does this correctly detect initgroups (un)availability on cygwin?
|
# XXX does this correctly detect initgroups (un)availability on cygwin?
|
||||||
check_symbol_exists(initgroups grp.h HAVE_DECL_INITGROUPS)
|
check_symbol_exists(initgroups grp.h HAVE_DECL_INITGROUPS)
|
||||||
|
@ -325,13 +324,6 @@ if(NOT HAVE_DECL_INITGROUPS AND HAVE_UNISTD_H)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_function_exists(timerfd_create HAVE_TIMERFD_CREATE)
|
|
||||||
# Checks for epoll availability, primarily for examples/tiny-nghttpd
|
|
||||||
check_symbol_exists(epoll_create sys/epoll.h HAVE_EPOLL)
|
|
||||||
if(HAVE_EPOLL AND HAVE_TIMERFD_CREATE)
|
|
||||||
set(ENABLE_TINY_NGHTTPD 1)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(WARNCFLAGS)
|
set(WARNCFLAGS)
|
||||||
set(WARNCXXFLAGS)
|
set(WARNCXXFLAGS)
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
if(CMAKE_C_COMPILER_ID MATCHES "MSVC")
|
||||||
|
|
|
@ -29,10 +29,6 @@ if(ENABLE_EXAMPLES)
|
||||||
add_executable(libevent-server libevent-server.c $<TARGET_OBJECTS:http-parser>)
|
add_executable(libevent-server libevent-server.c $<TARGET_OBJECTS:http-parser>)
|
||||||
add_executable(deflate deflate.c $<TARGET_OBJECTS:http-parser>)
|
add_executable(deflate deflate.c $<TARGET_OBJECTS:http-parser>)
|
||||||
|
|
||||||
if(ENABLE_TINY_NGHTTPD)
|
|
||||||
add_executable(tiny-nghttpd tiny-nghttpd.c $<TARGET_OBJECTS:http-parser>)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(ENABLE_ASIO_LIB)
|
if(ENABLE_ASIO_LIB)
|
||||||
foreach(name asio-sv asio-sv2 asio-cl asio-cl2)
|
foreach(name asio-sv asio-sv2 asio-cl asio-cl2)
|
||||||
add_executable(${name} ${name}.cc $<TARGET_OBJECTS:http-parser>)
|
add_executable(${name} ${name}.cc $<TARGET_OBJECTS:http-parser>)
|
||||||
|
|
Loading…
Reference in New Issue