You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

  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. # Check the third party Libraries
  7. find_package(Libubox REQUIRED)
  8. -find_package(Lua)
  9. +find_package(Lua51)
  10. include_directories(${CMAKE_CURRENT_BINARY_DIR} ${LIBUBOX_INCLUDE_DIR})
  11. @@ -20,9 +20,9 @@ option(UHTTPD_SSL_SUPPORT "SSL support"
  12. set(LUA_SUPPORT_DEFAULT "ON")
  13. -if (NOT LUA_FOUND)
  14. +if (NOT LUA51_FOUND)
  15. set(LUA_SUPPORT_DEFAULT "OFF")
  16. -endif (NOT LUA_FOUND)
  17. +endif (NOT LUA51_FOUND)
  18. set(UHTTPD_LUA_SUPPORT_CONFIG 1)
  19. option(UHTTPD_LUA_SUPPORT "LUA support" ${LUA_SUPPORT_DEFAULT})
  20. @@ -34,9 +34,9 @@ else ()
  21. endif ()
  22. if (UHTTPD_LUA_SUPPORT)
  23. - if (NOT LUA_FOUND)
  24. + if (NOT LUA51_FOUND)
  25. message(FATAL_ERROR "Lua was not found on your system")
  26. - endif (NOT LUA_FOUND)
  27. + endif (NOT LUA51_FOUND)
  28. include_directories(${LUA_INCLUDE_DIR})
  29. list(APPEND EXTRA_LIBS ${LUA_LIBRARY})