xkaraman left a comment (kamailio/kamailio#4578)

In `cmake` we use the 
[FindLua](https://cmake.org/cmake/help/latest/module/FindLua.html) module 
`find_package(Lua)`, which will discover the most recent and available 
liblua5.x-dev. A version can also supplied to require that one like 
`find_package(Lua 5.3)` and it will accept only compatible versions. One can 
also provide the path to it by using the 
[Lua_ROOT](https://cmake.org/cmake/help/v3.23/variable/PackageName_ROOT.html) 
but this is probably more for custom install paths since system installed will 
probably already be discovered. Or provide the necessary variables like 
`LUA_INCLUDE_DIR` to detect it.

I see two options regarding cmake. 

1. Build each version with a new configuration providing the the include dir 
like `-DLUA_INCLUDE_DIR=/usr/include/lua5.2` to detect the 5.2 version and then 
build the target app_lua. minimal to no cmake changes, but the module name will 
be the same, will need to find way to rename it from package perspective.
2. Try to implement something in its `CMakeLists.txt` with an option of list of 
version to be build if the libraries versions is installed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4578#issuecomment-3847701753
You are receiving this because you commented.

Message ID: <kamailio/kamailio/issues/4578/[email protected]>
_______________________________________________
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