Module: kamailio
Branch: master
Commit: 876b2d1d579c0386fe1c17faa4dd6fdb871889f4
URL: 
https://github.com/kamailio/kamailio/commit/876b2d1d579c0386fe1c17faa4dd6fdb871889f4

Author: Victor Seva <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2026-03-09T12:53:16+01:00

app_lua: cmake fix for detect lua5.5

---

Modified: src/modules/app_lua/CMakeLists.txt

---

Diff:  
https://github.com/kamailio/kamailio/commit/876b2d1d579c0386fe1c17faa4dd6fdb871889f4.diff
Patch: 
https://github.com/kamailio/kamailio/commit/876b2d1d579c0386fe1c17faa4dd6fdb871889f4.patch

---

diff --git a/src/modules/app_lua/CMakeLists.txt 
b/src/modules/app_lua/CMakeLists.txt
index 30e3d652f1c..e3297fc5471 100644
--- a/src/modules/app_lua/CMakeLists.txt
+++ b/src/modules/app_lua/CMakeLists.txt
@@ -8,9 +8,11 @@ if(LUAJIT)
   find_package(PkgConfig REQUIRED)
   pkg_check_modules(LUA REQUIRED IMPORTED_TARGET luajit)
 else()
-  find_package(Lua REQUIRED)
-  # CMake FindLua defines include as LUA_INCLUDE_DIR and lib as LUA_LIBRARIES
-  set(LUA_INCLUDE_DIRS ${LUA_INCLUDE_DIR})
+  find_package(Lua)
+  if(NOT Lua_FOUND)
+    find_package(PkgConfig REQUIRED)
+    pkg_check_modules(LUA REQUIRED IMPORTED_TARGET lua)
+  endif()
 endif()
 
 # the LUA_COMPAT_MODULE fixes this error: - implicit declaration of function

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to