It seems that Ubuntu 18.04 ships with LuaJIT 2.1.0-beta3 instead of LuaJIT 2.0.x, and the FindLuaJIT.cmake script doesn't look for include/luajit-2.1 and include/luajit2.1, thus the configure script fails.
I have to modify FindLuaJIT.cmake to search also in include/luajit-2.1 and include/luajit2.1 to fix this problem.
It seems that Ubuntu 18.04 ships with LuaJIT 2.1.0-beta3 instead of LuaJIT 2.0.x, and the
FindLuaJIT.cmake
script doesn't look forinclude/luajit-2.1
andinclude/luajit2.1
, thus the configure script fails.I have to modify
FindLuaJIT.cmake
to search also ininclude/luajit-2.1
andinclude/luajit2.1
to fix this problem.