Skip to content

Commit

Permalink
Fix another Lua version issue on CI
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Aponte <[email protected]>
  • Loading branch information
federico-sysdig authored and poiana committed Jan 16, 2024
1 parent b96054d commit 77dc7de
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmake/modules/luajit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ elseif(NOT USE_BUNDLED_LUAJIT)
message(STATUS "Found LuaJIT: include: ${LUAJIT_INCLUDE}, lib: ${LUAJIT_LIB}")
else()
# alternatively try stock Lua
find_package(Lua51)
find_package(Lua REQUIRED)
set(LUAJIT_LIB ${LUA_LIBRARY})
set(LUAJIT_INCLUDE ${LUA_INCLUDE_DIR})

if(NOT ${LUA51_FOUND})
message(FATAL_ERROR "Couldn't find system LuaJIT or Lua")
endif()
endif()
else()
set(LUAJIT_SRC "${PROJECT_BINARY_DIR}/luajit-prefix/src/luajit/src")
Expand All @@ -38,7 +34,7 @@ else()
if(NOT WIN32)
set(LUAJIT_LIB "${LUAJIT_SRC}/libluajit.a")
else()
set(LUAJIT_LIB "${LUAJIT_SRC}/lua51.lib")
set(LUAJIT_LIB "${LUAJIT_SRC}/lua52.lib")
endif()

if(NOT TARGET luajit)
Expand Down

0 comments on commit 77dc7de

Please sign in to comment.