You are not logged in.

#1 2025-01-31 01:55:46

soyalemujica
Member
Registered: 2025-01-14
Posts: 2

[SOLVED] cmake, cannot seem to find luajit or lua at all.

Literally installed all lua52 and lua, luajit from pacman and still cmake is not able to find them.

    #find lua
    if(LUAJIT)
        find_package(LuaJIT REQUIRED)
        set(LUA_INCLUDE_DIR ${LUAJIT_INCLUDE_DIR})
        set(LUA_LIBRARY ${LUAJIT_LIBRARY})

        if(APPLE)
          set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -pagezero_size 10000 -image_base 100000000")
        endif()
    else()
        find_package(Lua REQUIRED)
    endif()
    message(STATUS "LuaJIT: " ${LUAJIT})

I also have the FindLua.cmake.

EDIT:
Solved, Archlinux is NOT coming with static libraries, you must set static libraries as off!

Last edited by soyalemujica (2025-01-31 02:24:23)

Offline

Board footer

Powered by FluxBB