1 # Look for Lua library to use
2 # This selects LuaJIT by default
4 option(ENABLE_LUAJIT "Enable LuaJIT support" TRUE)
6 option(REQUIRE_LUAJIT "Require LuaJIT support" FALSE)
8 set(ENABLE_LUAJIT TRUE)
14 message (STATUS "Using LuaJIT provided by system.")
15 elseif(REQUIRE_LUAJIT)
16 message(FATAL_ERROR "LuaJIT not found whereas REQUIRE_LUAJIT=\"TRUE\" is used.\n"
17 "To continue, either install LuaJIT or do not use REQUIRE_LUAJIT=\"TRUE\".")
20 message (STATUS "LuaJIT detection disabled! (ENABLE_LUAJIT=0)")
24 message(STATUS "LuaJIT not found, using bundled Lua.")
26 set(LUA_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/lua/src)
27 add_subdirectory(lib/lua)