Skip to content

Commit dc04b0b

Browse files
committed
cmake: allow to set a Lua library outside
1 parent 92085b3 commit dc04b0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ elseif (USE_LUAJIT)
5151
include(BuildLuaJIT)
5252
build_luajit(${LUA_VERSION})
5353
set(IS_LUAJIT TRUE)
54+
elseif (LUA_INCLUDE_DIR AND LUA_LIBRARIES AND LUA_EXECUTABLE AND LUA_VERSION_STRING)
55+
message(STATUS "Lua library passed outside:")
56+
message(STATUS "LUA_INCLUDE_DIR: ${LUA_INCLUDE_DIR}")
57+
message(STATUS "LUA_LIBRARIES: ${LUA_LIBRARIES}")
58+
message(STATUS "LUA_EXECUTABLE: ${LUA_EXECUTABLE}")
5459
else ()
5560
message(FATAL_ERROR "No Lua is specified.")
5661
endif ()

0 commit comments

Comments
 (0)