lua-openssl: fix Lua detection with CMake 4.3
authorAlexandru Ardelean <redacted>
Mon, 4 May 2026 05:47:19 +0000 (08:47 +0300)
committerAlexandru Ardelean <redacted>
Mon, 4 May 2026 16:26:53 +0000 (19:26 +0300)
commita3d2536eb01fbdafded27ea57280221249f0e02b
treed3fb4b52bb7dccb709ffff3f430406e898b5fb7d
parent5e9229551de9cdbfae7ba4fe210713cf12732dc2
lua-openssl: fix Lua detection with CMake 4.3

FindLuaJIT.cmake uses NO_DEFAULT_PATH and only searches hardcoded
luajit-specific paths, so it never finds regular Lua. However if
LUAJIT_INCLUDE_DIRS and LUAJIT_LIBRARY are pre-set in the CMake
cache, find_path/find_library skip their searches, the module sets
LUAJIT_FOUND=ON and also sets LUA_INCLUDE_DIR/LUA_LIBRARIES from
those values, and the if(NOT LUAJIT_FOUND) guard skips the broken
find_package(Lua REQUIRED) call that fails under CMake 4.3.

Signed-off-by: Alexandru Ardelean <redacted>
lang/lua/lua-openssl/Makefile
git clone https://git.99rst.org/PROJECT