xkaraman left a comment (kamailio/kamailio#4578)

> I think being able to do like `find_package(Lua 5.3)` could be a good option 
> to have, where the parameter specifying the version is provided via a 
> variable that could be provided as a cli option, like:

Well, this can already be done by just providing the `-DLua_INCLUDE_DIR`, why 
would we want to introduce more params? This is more of an advanced option 
either way. You have to provide the path and not just the version which is a 
bit of a hassle, but do we need mix params? what if someone adds both 
`Lua_INCLUDE_DIR` and `USE_LUA_VERSION`?

> Not sure if possible/what could be done to compile the same module many 
> times, to link with different libraries and have a different module name. 
> Maybe we can leverage (extend) the modules groups, now we have in 
> `cmake/groups.cmake`:

Regarding compilation of the same module, we can create just another 
`add_library(app_lua5.x)` with the same sources and provide whatever 
compilation and linking they need. We might be able to auto-discover the 
available versions somehow and provide the relevant target only if found i 
guess.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4578#issuecomment-3859166923
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