Lessaire
Omniscient Hypervisor
Then tell CMake how to find them manually?
In your build folder, this command should show you everything you can tell CMake.
cmake ./../ -LA
You can even filter that to get just the stuff about lua!
cmake ./../ -LA | grep -i lua
For example, here is my output for that exact command in my TFS 1.3 folder:
Here are two things you could have found in seconds on Google and should be all you need to complete this puzzle:
# How to find installed libraries and headers -> Near the very top in a Google is StackOverflow
# And you watched me used find and grep extensively when I helped you over remote.
# One would hope you'd have played with them more after seeing how powerful they are.
find /usr/include/ /usr/lib/ | grep -i "luajit"
# How to specify a CMake option -> Near the very top in a Google is StackOverfow
cmake -DLUA_INCLUDE_DIR:PATH=/usr/include/luajit-2.0 ./../
cmake -DLUA_LIBRARY:FILEPATH=/usr/lib/libluajit-5.1.so ./../
In your build folder, this command should show you everything you can tell CMake.
cmake ./../ -LA
You can even filter that to get just the stuff about lua!
cmake ./../ -LA | grep -i lua
For example, here is my output for that exact command in my TFS 1.3 folder:
Bash:
# [ ~/src/otserver_forgotten/build ]
$ cmake ./../ -LA | grep -i lua
LUA_INCLUDE_DIR:PATH=/usr/include/luajit-2.0
LUA_LIBRARIES:STRING=/usr/lib/libluajit-5.1.so;/usr/lib/libm.so
LUA_LIBRARY:FILEPATH=/usr/lib/libluajit-5.1.so
LUA_MATH_LIBRARY:FILEPATH=/usr/lib/libm.so
USE_LUAJIT:BOOL=ON
Here are two things you could have found in seconds on Google and should be all you need to complete this puzzle:
# How to find installed libraries and headers -> Near the very top in a Google is StackOverflow
# And you watched me used find and grep extensively when I helped you over remote.
# One would hope you'd have played with them more after seeing how powerful they are.
find /usr/include/ /usr/lib/ | grep -i "luajit"
Bash:
$ find /usr/include/ /usr/lib/ | grep -i "luajit"
/usr/include/luajit-2.0
/usr/include/luajit-2.0/lauxlib.h
/usr/include/luajit-2.0/lua.h
/usr/include/luajit-2.0/lua.hpp
/usr/include/luajit-2.0/luaconf.h
/usr/include/luajit-2.0/luajit.h
/usr/include/luajit-2.0/lualib.h
/usr/lib/pkgconfig/luajit.pc
/usr/lib/libluajit-5.1.so
/usr/lib/libluajit-5.1.so.2
/usr/lib/libluajit-5.1.so.2.0.5
# How to specify a CMake option -> Near the very top in a Google is StackOverfow
cmake -DLUA_INCLUDE_DIR:PATH=/usr/include/luajit-2.0 ./../
cmake -DLUA_LIBRARY:FILEPATH=/usr/lib/libluajit-5.1.so ./../