Commit 9d68fcd
committed
rockspec: propagate CMake options
Sometimes one needs to build a luzer module using rockspec with
a non-system Lua library and headers, for which the CMake options
LUA_LIBRARIES and LUA_INCLUDE_DIR are used. The patch adds
variables for the rockspec to set these options via environment
variables: CMAKE_LUA_LIBRARIES, CMAKE_LUA_INCLUDE_DIR,
ENABLE_LUAJIT and LUAJIT_FRIENDLY_MODE.
luarocks install --lua-version 5.1 --verbose --tree=lua_modules \
luzer-scm-1.rockspec ENABLE_LUAJIT=ON LUAJIT_FRIENDLY_MODE=ON
Needed for google/oss-fuzz#146101 parent 545028b commit 9d68fcd
2 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
0 commit comments