slages / love-imgui

imgui module for the LÖVE game engine
MIT License
321 stars 61 forks source link

Cannot build when LuaJIT 2.1.0-beta is installed but LuaJIT 2.0 does not. #31

Open MikuAuahDark opened 5 years ago

MikuAuahDark commented 5 years ago

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.

doyousketch2 commented 5 years ago

Can confirm on Debian 9 / testing. Same issue.

line 7 set(LUAJIT_SEARCH_PATHS line 8 ++ /usr/include/luajit-2.1