libuhttpd: Update to 2.1.2
[feed/packages.git] / libs / libuhttpd / patches / 001-fix-find-lua.patch
1 Index: libuhttpd-2.1.0/src/CMakeLists.txt
2 ===================================================================
3 --- libuhttpd-2.1.0.orig/src/CMakeLists.txt
4 +++ libuhttpd-2.1.0/src/CMakeLists.txt
5 @@ -8,7 +8,7 @@ set(UHTTPD_VERSION_PATCH 0)
6
7 # Check the third party Libraries
8 find_package(Libubox REQUIRED)
9 -find_package(Lua)
10 +find_package(Lua51)
11
12 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${LIBUBOX_INCLUDE_DIR})
13
14 @@ -20,9 +20,9 @@ option(UHTTPD_SSL_SUPPORT "SSL support"
15
16
17 set(LUA_SUPPORT_DEFAULT "ON")
18 -if (NOT LUA_FOUND)
19 +if (NOT LUA51_FOUND)
20 set(LUA_SUPPORT_DEFAULT "OFF")
21 -endif (NOT LUA_FOUND)
22 +endif (NOT LUA51_FOUND)
23
24 set(UHTTPD_LUA_SUPPORT_CONFIG 1)
25 option(UHTTPD_LUA_SUPPORT "LUA support" ${LUA_SUPPORT_DEFAULT})
26 @@ -34,9 +34,9 @@ else ()
27 endif ()
28
29 if (UHTTPD_LUA_SUPPORT)
30 - if (NOT LUA_FOUND)
31 + if (NOT LUA51_FOUND)
32 message(FATAL_ERROR "Lua was not found on your system")
33 - endif (NOT LUA_FOUND)
34 + endif (NOT LUA51_FOUND)
35
36 include_directories(${LUA_INCLUDE_DIR})
37 list(APPEND EXTRA_LIBS ${LUA_LIBRARY})