Skip to content

Commit 4808c5b

Browse files
committed
cmake: allow to set a Lua library outside
1 parent 4fc4f85 commit 4808c5b

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
@@ -50,6 +50,11 @@ if (USE_LUA)
5050
elseif (USE_LUAJIT)
5151
include(BuildLuaJIT)
5252
build_luajit(${LUA_VERSION})
53+
elseif (LUA_INCLUDE_DIR AND LUA_LIBRARIES AND LUA_EXECUTABLE AND LUA_VERSION_STRING)
54+
message(STATUS "Lua library passed outside:")
55+
message(STATUS "LUA_INCLUDE_DIR: ${LUA_INCLUDE_DIR}")
56+
message(STATUS "LUA_LIBRARIES: ${LUA_LIBRARIES}")
57+
message(STATUS "LUA_EXECUTABLE: ${LUA_EXECUTABLE}")
5358
else ()
5459
message(FATAL_ERROR "No Lua is specified.")
5560
endif ()

0 commit comments

Comments
 (0)