mirror of
https://github.com/openwrt/packages.git
synced 2026-05-31 23:12:02 +08:00
a3d2536eb0
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 <alex@shruggie.ro>