miconda 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:
``` cmake
if(USE_LUA_VERSION)
find_package(Lua ${USE_LUA_VERSION} REQUIRED)
else()
find_package(Lua REQUIRED)
endif()
```
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`:
``` cmake
set(MOD_LIST_LUA app_lua)
```
Maybe we could add (pseudo-code, not sure what would be possible with cmake for
the second line):
``` cmake
set(MOD_LIST_LUA52 app_lua) # the module with the source code
set(MOD_LIST_LUA52_VARS module_name=app_lua52 USE_LUA_VERSION=5.2) # to specify
what the output module name is and what library version to link against
```
And similar groups for the other lua versions.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4578#issuecomment-3849441739
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!