libuhttpd: Update to 2.1.2

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-07-19 22:35:53 +08:00
parent 76c4865971
commit 960dfe244a
2 changed files with 45 additions and 4 deletions
@@ -0,0 +1,37 @@
Index: libuhttpd-2.1.0/src/CMakeLists.txt
===================================================================
--- libuhttpd-2.1.0.orig/src/CMakeLists.txt
+++ libuhttpd-2.1.0/src/CMakeLists.txt
@@ -8,7 +8,7 @@ set(UHTTPD_VERSION_PATCH 0)
# Check the third party Libraries
find_package(Libubox REQUIRED)
-find_package(Lua)
+find_package(Lua51)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${LIBUBOX_INCLUDE_DIR})
@@ -20,9 +20,9 @@ option(UHTTPD_SSL_SUPPORT "SSL support"
set(LUA_SUPPORT_DEFAULT "ON")
-if (NOT LUA_FOUND)
+if (NOT LUA51_FOUND)
set(LUA_SUPPORT_DEFAULT "OFF")
-endif (NOT LUA_FOUND)
+endif (NOT LUA51_FOUND)
set(UHTTPD_LUA_SUPPORT_CONFIG 1)
option(UHTTPD_LUA_SUPPORT "LUA support" ${LUA_SUPPORT_DEFAULT})
@@ -34,9 +34,9 @@ else ()
endif ()
if (UHTTPD_LUA_SUPPORT)
- if (NOT LUA_FOUND)
+ if (NOT LUA51_FOUND)
message(FATAL_ERROR "Lua was not found on your system")
- endif (NOT LUA_FOUND)
+ endif (NOT LUA51_FOUND)
include_directories(${LUA_INCLUDE_DIR})
list(APPEND EXTRA_LIBS ${LUA_LIBRARY})