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)
7 # Check the third party Libraries
8 find_package(Libubox REQUIRED)
12 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${LIBUBOX_INCLUDE_DIR})
14 @@ -20,9 +20,9 @@ option(UHTTPD_SSL_SUPPORT "SSL support"
17 set(LUA_SUPPORT_DEFAULT "ON")
20 set(LUA_SUPPORT_DEFAULT "OFF")
21 -endif (NOT LUA_FOUND)
22 +endif (NOT LUA51_FOUND)
24 set(UHTTPD_LUA_SUPPORT_CONFIG 1)
25 option(UHTTPD_LUA_SUPPORT "LUA support" ${LUA_SUPPORT_DEFAULT})
26 @@ -34,9 +34,9 @@ else ()
29 if (UHTTPD_LUA_SUPPORT)
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)
36 include_directories(${LUA_INCLUDE_DIR})
37 list(APPEND EXTRA_LIBS ${LUA_LIBRARY})