Skip to content

Commit

Permalink
cmake: allow to set a Lua library outside
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed Dec 9, 2024
1 parent 92085b3 commit dc04b0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ elseif (USE_LUAJIT)
include(BuildLuaJIT)
build_luajit(${LUA_VERSION})
set(IS_LUAJIT TRUE)
elseif (LUA_INCLUDE_DIR AND LUA_LIBRARIES AND LUA_EXECUTABLE AND LUA_VERSION_STRING)
message(STATUS "Lua library passed outside:")
message(STATUS "LUA_INCLUDE_DIR: ${LUA_INCLUDE_DIR}")
message(STATUS "LUA_LIBRARIES: ${LUA_LIBRARIES}")
message(STATUS "LUA_EXECUTABLE: ${LUA_EXECUTABLE}")
else ()
message(FATAL_ERROR "No Lua is specified.")
endif ()
Expand Down

0 comments on commit dc04b0b

Please sign in to comment.