mirror of
https://github.com/walterschell/Lua.git
synced 2024-11-15 12:15:43 +08:00
CMake based build of Lua (5.4.6 and 5.3.3)
.github/workflows | ||
lua-5.4.5 | ||
lua-5.4.5-tests | ||
lua-5.4.6 | ||
lua-5.4.6-tests | ||
lua-config-package-tests | ||
orig_sources | ||
.gitignore | ||
CMakeLists.txt | ||
README.md |
Lua
CMake based build of Lua 5.4.5
Build as C | Build as C++ |
---|---|
Usage
Inside of your project's CMakeLists.txt
add_subdirectory(lua)
...
target_link_libraries(<YOURTARGET> lua_static)
Important Note:
Depending on your use case, Lua v5.4.5 is API and ABI incompatible with v5.4.1-v5.4.4. A second parameter has been added to lua_resetthread()
. See https://marc.info/?t=168182290600001&r=1&w=2 for more details.